Martijn Dekker dixit:
> One of the recent commits introduced a new bug: if a dot script is sourced
> with
> 'command .', the positional parameters are permanently overridden by whatever
> they were at the point of sourcing, and any changes to them are ignored.
Ouch, so it’s not all that easy…
One of the recent commits introduced a new bug: if a dot script is
sourced with 'command .', the positional parameters are permanently
overridden by whatever they were at the point of sourcing, and any
changes to them are ignored.
$ cat >test.mksh
set -- one two
shift
printf '[%s]\n' "$#"