Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15857

Re: Preventing Bash Variable Confusion

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Roger <rogerx.oss@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Preventing Bash Variable Confusion
Date Thu, 30 Jan 2020 14:41:53 -0500
Lines 15
Approved bug-bash@gnu.org
Message-ID <mailman.128.1580413325.2384.bug-bash@gnu.org> (permalink)
References <20200128210225.GC12574@localhost4.local> <CAJnmqwbr6EVJOZn6SLdByAgZAoFN60ahCp3m2HJyJ6VS=hwEvg@mail.gmail.com> <20200130064018.GA23692@localhost4.local> <CAJnmqwa0y4iOQEzFPZjGGqtJ3eLPPdsZRz2ZAfLneEtQUJo2nA@mail.gmail.com> <20200130194153.GB7255@localhost4.local>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1580413326 31841 209.51.188.17 (30 Jan 2020 19:42:06 GMT)
X-Complaints-To action@cs.stanford.edu
To konsolebox <konsolebox@gmail.com>, bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=hfciaXbqKS8VyC3PT/NsYQyUO6HjqivCENeRQEFyKaY=; b=FGQt3oBg6iEHR6nosd6j67M0yanMI8n7QvPcx3hAwaPAJVIacjzWtGc1z6jNQOzm+m M1hn8gMiocr8MHUanT4GQM/3kT3Ta9EMnVt2TmP9bXSBx7s9zGvvUEDFEM7sUI8hoUyx X4OLlfPf1UJAZhJA8EX+cwMkAG4cwMuntBXEGLbT/6B3R0vEBxMQmbhbeRaborrYQI1e tt3equ8NxFELeACagaQGWHL/V1udsoooQBRo6dB18H/rgnbyl9pYXOlFJTdyB6QGeCyy 1SXe76Ipum+S2919A/ErDUKMWIG3lyUOAj3+Gv5ByZpYrUTuiP+/kZzi0ESyRxwziKbg 1/sA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=hfciaXbqKS8VyC3PT/NsYQyUO6HjqivCENeRQEFyKaY=; b=C6HXzDnx0DMF2TBCmhTqGXbwXKMxjcobY8DDuxnnONmViUlkYTqaJhpvgwEq5DthYm 8tbZ6qt/6/CiNbT0odSOUS7mxmyPupivd/O2J1PWXsqsD3coo3IA1swOChNCgjpTgVkR aKIqj/e5T6WvxgSlpUNMVFb1YVr3k97ez4Da4uHSeEXXfVr6JuX4vbpDlRb0RlJnhSvJ C/FKtohsxF9BZqgd60Kjw1fdwAMi/Li9smYEIwZ/lyDQEGkOpwJkiNiQrkmOKq35INyn M334xJbu/SGgFEn/pjGLln4zNl1QY7KCfPeKY/Tv5HltPY0cN9VjkJOmD533MFI9JJAJ TV8g==
X-Gm-Message-State APjAAAWw5nof7DTUE3u/WyjzlBN/17xGzQkySR+Q4BeGMzfjBMXlj5IV LGtYnsArNClA/eaY0NLOZgA=
X-Google-Smtp-Source APXvYqzqrHDvhTcdodqqf0UEp1f+D+68Cej8W9m4UyOFO81Pbqf3kfRvCk/UPvNjnsTZmLAQAvGz9w==
X-Received by 2002:aed:234a:: with SMTP id i10mr6611804qtc.155.1580413314840; Thu, 30 Jan 2020 11:41:54 -0800 (PST)
Content-Disposition inline
In-Reply-To <CAJnmqwa0y4iOQEzFPZjGGqtJ3eLPPdsZRz2ZAfLneEtQUJo2nA@mail.gmail.com>
X-PGP-Key http://rogerx.sdf.org/about/armor-F515AC1F231FFC4EF0BCDE7606CEA0ECE2887C75-20170104.asc
User-Agent Mutt/1.10.1 (2018-07-13)
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4864:20::82c
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200130194153.GB7255@localhost4.local>
X-Mailman-Original-References <20200128210225.GC12574@localhost4.local> <CAJnmqwbr6EVJOZn6SLdByAgZAoFN60ahCp3m2HJyJ6VS=hwEvg@mail.gmail.com> <20200130064018.GA23692@localhost4.local> <CAJnmqwa0y4iOQEzFPZjGGqtJ3eLPPdsZRz2ZAfLneEtQUJo2nA@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15857

Show key headers only | View raw


>They still allow you to define constants in all-caps.  The impact it
>makes is not so different with defining globals as such.  Try Ruby.

The reason I used to prefer using all uppercase/capital letters, the variable 
definitations would stand out similar to C style definition macros.  Variables 
become extremely identifiable and comprehensible.

Not so much with underscore prefix, however I'll try learning.

--
Roger
http://rogerx.sdf.org/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Preventing Bash Variable Confusion Roger <rogerx.oss@gmail.com> - 2020-01-30 14:41 -0500

csiph-web