Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

${*} causes syntax error #186

Open
illiliti opened this issue Aug 4, 2021 · 0 comments
Open

${*} causes syntax error #186

illiliti opened this issue Aug 4, 2021 · 0 comments

Comments

@illiliti
Copy link

illiliti commented Aug 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant