emersion / mrsh

A minimal POSIX shell
MIT License
489 stars 35 forks source link

${*} causes syntax error #186

Open illiliti opened 3 years ago

illiliti commented 3 years ago

sample:

: ${*}

output:

dash, ash, mksh, oksh, yash, zsh(--emulate sh):

<no output>

mrsh:

test.sh:1:5: syntax error: expected a parameter

Note that parameter expansion of $* [0] result in undefined behavior. ${*} isn't a parameter expansion. It's a safe alias to $*

[0] https://www.austingroupbugs.net/view.php?id=1478