Re-establishing the "magic" of the special vars in sh(1)

2019-02-09 Thread Robert Elz
The shell (/bin/sh) has a number of "special" or "magic" variables. One of those (LINENO) is required by POSIX (and autoconf) so the general concept is not going away (so please don't bother replying to this message along the lines of "the whole thing is a bad idea and should be done another way"

Re: Re-establishing the "magic" of the special vars in sh(1)

2019-02-09 Thread Michael van Elst
k...@munnari.oz.au (Robert Elz) writes: >A couple of them (including LINENO, obviously) but also RANDOM are >very special, the magic cannot be removed, though it can temporarily >be suspended by unsetting them. Doesn't POSIX require that the variable is non-magic once set or unset for the lifetim

Re: Re-establishing the "magic" of the special vars in sh(1)

2019-02-09 Thread Robert Elz
Date:Sat, 9 Feb 2019 13:08:15 - (UTC) From:mlel...@serpens.de (Michael van Elst) Message-ID: | Doesn't POSIX require that the variable is non-magic once set or unset | for the lifetime of the shell? POSIX has only LINENO that is like this, and is very wishy-w