bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing Bash Variable Confusion


From: Chet Ramey
Subject: Re: Preventing Bash Variable Confusion
Date: Wed, 29 Jan 2020 09:45:07 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]