On 3/28/17 1:13 PM, Torka Noda wrote:
> Modifying positional parameters with `set --` isn't supposed to
> modify the shell's behavior live, anyway. The command line is
> already parsed and options already set. So Bash should always
> use the original arguments specified on the command line, to
> pass them to the possible commands fed to its stdin, regardless
> of whether position parameters which could be made available to
> Bash initialization files are modified.
This is not correct. There is only one set of positional parameters
(putting aside shell functions for a second), and `set' can modify them.
Unless you mean something different that I do not see.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/