bug-bash
[Top][All Lists]
Advanced

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

Re: GROUPS


From: Greg Wooledge
Subject: Re: GROUPS
Date: Mon, 9 Aug 2021 20:36:39 -0400

On Mon, Aug 09, 2021 at 05:35:56PM -0400, Franklin, Jason wrote:
> Should bash, invoked with "--posix" or as "sh", omit the special
> treatment of variables such as GROUPS?

I would say no.  Using all-caps variable names is a bad idea for
precisely this reason -- you never know when it'll be something
special, in your shell or in your operating system.

Always use at least one lower-case letter in each variable name, unless
you're actually exporting something as an environment variable, and
you know that the name is not used by anything else in your working
environment.



reply via email to

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