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    c...@case.edu    http://tiswww.cwru.edu/~chet/

  • GROUPS Franklin, Jason
    • Re: G... Greg Wooledge
      • R... Franklin, Jason
        • ... Greg Wooledge
        • ... Chet Ramey
        • ... Robert Elz
          • ... Štěpán Němec
            • ... Andreas Schwab
          • ... Chet Ramey
          • ... Robert Elz
            • ... Chet Ramey
            • ... Robert Elz
    • Re: G... Chet Ramey
    • Re: G... Franklin, Jason
      • R... Dmitry Goncharov via Bug reports for the GNU Bourne Again SHell

Reply via email to