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' "$#" "$@"
$ mksh -c 'command . ./test.mksh' dummy oh dear this is not good
[6]
[oh]
[dear]
[this]
[is]
[not]
[good]

--
modernish -- harness the shell
https://github.com/modernish/modernish

Reply via email to