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

Fix args quoting for node commandlet #455

Merged
merged 1 commit into from
Sep 1, 2020
Merged

Conversation

markusschuh
Copy link
Member

Fix quoting of args in array context.

Use "$@" instead of "$*" for correct quoting of each single command option. Otherwise "devon node" can't take more than one argument.

Fix quoting of args in array context.

Use "$@" instead of "$*" for correct quoting of each single command option. Otherwise "devon node" can't take more than one argument.
Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markusschuh thanks for pointing this out and fixing it via PR. Indeed this is the right way to do it and in other commandlets (e.g. mvn) we also use ${@} instead of ${*}. However, I also have to admit that bash confuses me with these two variants and shellcheck wants us to use ${*} in the doEcho statement (see above) since it is within double quotes.
Thanks for the fix 👍

@hohwille hohwille added this to the release:2020.08.002 milestone Sep 1, 2020
@hohwille hohwille merged commit b11727f into devonfw:master Sep 1, 2020
@hohwille hohwille added bug Something isn't working commandlet related to commandlets (scripts/command/*) enhancement New feature or request labels Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working commandlet related to commandlets (scripts/command/*) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants