bug-bash
[Top][All Lists]
Advanced

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

Re: GROUPS


From: Chet Ramey
Subject: Re: GROUPS
Date: Tue, 10 Aug 2021 10:22:29 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

On 8/9/21 10:00 PM, Franklin, Jason wrote:

> If I run a script against a POSIX-compliant (PC) shell using only PC
> syntax/features and then I run the same script with Bash in PC mode, I
> would expect an identical result.  To me, anything else indicates a bug
> in one of the shells.  Perhaps this assessment is naive.

If the script uses only features specified by POSIX, it's a reasonable
expectation. If it uses features that POSIX doesn't mention -- and every
shell has them -- it's not. In this case, you are using features outside
what POSIX specifies. Since GROUPS has no standard behavior, each shell is
free to make it special (bash) or not (dash).

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