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


Groups > gnu.bash.bug > #15837 > unrolled thread

Re: Preventing Bash Variable Confusion

Started byChet Ramey <chet.ramey@case.edu>
First post2020-01-29 09:45 -0500
Last post2020-01-29 09:45 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#15837 — Re: Preventing Bash Variable Confusion

FromChet Ramey <chet.ramey@case.edu>
Date2020-01-29 09:45 -0500
SubjectRe: Preventing Bash Variable Confusion
Message-ID<mailman.31.1580309113.2384.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web