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


Groups > gnu.bash.bug > #15837

Re: Preventing Bash Variable Confusion

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Preventing Bash Variable Confusion
Date 2020-01-29 09:45 -0500
Message-ID <mailman.31.1580309113.2384.bug-bash@gnu.org> (permalink)
References <20200128210225.GC12574@localhost4.local> <20806.1580277461@jinx.noi.kre.to> <20200129142305.GX1350@eeg.ccf.org> <77993d73-c622-b646-55d5-e8b370f742de@case.edu>

Show all headers | View raw


On 1/29/20 9:23 AM, Greg Wooledge wrote:

> As long as you use at least one lowercase letter in your variable name,
> you are guaranteed not to conflict with any internal shell variables.

As long as you use mixed case. There are two lowercase shell variables
bash looks at: auto_resume and histchars.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

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


Thread

Re: Preventing Bash Variable Confusion Chet Ramey <chet.ramey@case.edu> - 2020-01-29 09:45 -0500

csiph-web