emersion / mrsh

A minimal POSIX shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

${*} causes syntax error

illiliti opened this issue · comments

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