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/