[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GROUPS
From: |
Franklin, Jason |
Subject: |
GROUPS |
Date: |
Mon, 09 Aug 2021 17:35:56 -0400 |
User-agent: |
Evolution 3.36.5-0ubuntu1 |
Greetings:
I discovered today that the GROUPS variable is special in Bash.
I moved some scripts to a new box, and they stopped working. On this
box, /bin/sh linked to /bin/bash instead instead of /bin/dash.
Scripts of of this form...
#!/bin/sh
GROUPS='foo bar'
# do something with $GROUPS here
had worked because GROUPS had no special meaning under /bin/dash.
The script is invoked with /bin/sh (linked to /bin/bash), so I had
expected Bash POSIX compliance to take over. It did not.
Is this considered a bug?
Should bash, invoked with "--posix" or as "sh", omit the special
treatment of variables such as GROUPS?
--
Jason Franklin
- GROUPS,
Franklin, Jason <=
- Re: GROUPS, Greg Wooledge, 2021/08/09
- Re: GROUPS, Franklin, Jason, 2021/08/09
- Re: GROUPS, Greg Wooledge, 2021/08/09
- Re: GROUPS, Chet Ramey, 2021/08/10
- Re: GROUPS, Robert Elz, 2021/08/10
- Re: GROUPS, Štěpán Němec, 2021/08/11
- Re: GROUPS, Andreas Schwab, 2021/08/11
- Re: GROUPS, Chet Ramey, 2021/08/11
- Re: GROUPS, Robert Elz, 2021/08/11
- Re: GROUPS, Chet Ramey, 2021/08/11