|
| From: | Chet Ramey |
| Subject: | Re: GROUPS |
| Date: | Fri, 13 Aug 2021 10:53:34 -0400 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 |
On 8/13/21 10:32 AM, Greg Wooledge wrote:
On Fri, Aug 13, 2021 at 10:10:42AM -0400, Chet Ramey wrote:As long as you stick to things POSIX standardizes. Relevant here, the standard even includes a list of variables you should avoid using because various shells and applications use them.Just out of curiosity, where is that? It's not under section 2.5.3 Shell Variables, which is where I looked first. The closest thing I could find is a section in the Rationale that describes some variables that are no longer covered by the standard, but either used to be, or are commonly used as extensions: https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap02.html#tag_23_02_05_03 Is there another section that I've missed?
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08
"It is unwise to conflict with certain variables that are frequently
exported by widely used command interpreters and applications:"
--
``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/
| [Prev in Thread] | Current Thread | [Next in Thread] |