Skip to content

Use "$@" instead of bare $@ to protect arguments #4395

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

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

fumiyas
Copy link
Contributor

@fumiyas fumiyas commented Jan 6, 2016

Bash expands bare $@, and then do word-splitting and file-globing. It breaks command-line arguments for arduino if command-line arguments for the wrapper script contain $IFS, '*', '?' and etc. characters.

Use "$@" in this case.

Bash expands bare $@, and then do word-splitting and file-globing. It breaks command-line arguments
for arduino if command-line arguments for the wrapper script contains $IFS, '*', '?' and etc. characters.

Use "$@" in this case.
@matthijskooijman
Copy link
Collaborator

This change looks good to me.

@facchinm
Copy link
Member

facchinm commented Jan 7, 2016

Great, thank you for spotting this!

facchinm added a commit that referenced this pull request Jan 7, 2016
Use "$@" instead of bare $@ to protect arguments
@facchinm facchinm merged commit 8049b6e into arduino:ide-1.5.x Jan 7, 2016
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

Successfully merging this pull request may close these issues.

3 participants