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

Re: Shell-script variable name case [WAS: Re: can you parse and "tail" at once? (and if you can't why not?)]



On 23/10/2023 10:56, David wrote:
Hi, for your info, this convention is specified by POSIX:
   https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Which says:
   Environment variable names used by the utilities in the Shell and
   Utilities volume of POSIX.1-2017 consist solely of uppercase letters,
   digits, and the <underscore> ( '_' ) from the characters defined in
   Portable Character Set and do not begin with a digit.

And:
   The name space of environment variable names containing lowercase letters
   is reserved for applications. Applications can define any environment
   variables with names from this name space without modifying the behavior
   of the standard utilities.

That's good to know, and pretty much invalidates everything I said.

--
BOFH excuse #239:

CPU needs bearings repacked

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


Reply to: