[Top][All Lists]

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


From: Chet Ramey
Subject: Re: GROUPS
Date: Wed, 11 Aug 2021 10:16:42 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 8/10/21 12:39 PM, Robert Elz wrote:

   | In this case, you are using features outside what POSIX specifies.

Using a variable name that's outside what POSIX specifies is hardly
using a feature that's outside POSIX - if it were then there would be
no safe non-trivial scripts, since any variable name might be made magic
by some shell or other (and no, there's nothing special about all upper
case variable names).    Only those defined by POSIX to have some special
meaning mean something, and even those can be re-used for another purpose
as long as one doesn't expect the special behaviour to function correctly.

As long as POSIX doesn't define a variable to have some special meaning, it
doesn't have anything to say about how a shell chooses to use it. It's not
a POSIX issue, period.

In this case, as is the case with just about all of the bash special
variables, you can unset it and it will lose its special meaning.

``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]