[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GROUPS
From: |
Dale R. Worley |
Subject: |
Re: GROUPS |
Date: |
Fri, 20 Aug 2021 21:26:58 -0400 |
Robert Elz <kre@munnari.OZ.AU> writes:
> | What seems to be the case with sh-style shells and Posix is that
> | all-caps variable names are subject to implementation-specific use, and
> | so users should not use them except when using them in the way that is
> | specific to the implementation the script is to be executed on.
>
> That could have been done, once perhaps, but it is way too late now.
> There is no such rule anywhere in POSIX sh, and scripts using upper
> case var names abound in the world, there's no chance that they're
> going away.
I was more looking at it as what sort of advice one should give to
people who want to write "portable" scripts that won't be blindsided by
a shell that makes some upper-case word special. Though it's quite
possible that the bash manual page contains that advice somewhere that
I've not looked at.
Dale
- Re: GROUPS, (continued)
- Re: GROUPS, Franklin, Jason, 2021/08/11
- Re: GROUPS, Greg Wooledge, 2021/08/11
- Re: GROUPS, Chet Ramey, 2021/08/13
- Re: GROUPS, Franklin, Jason, 2021/08/13
- Re: GROUPS, Dale R. Worley, 2021/08/16
- Re: GROUPS, Robert Elz, 2021/08/17
- Re: GROUPS,
Dale R. Worley <=