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

liblock.in: double-quote $@ before invoking subshell #3

Merged
merged 1 commit into from
Oct 31, 2017

Conversation

cota
Copy link
Contributor

@cota cota commented Oct 31, 2017

This fixes the invocation of programs with quoted parameters, since
'"$@"' preserves the original argument string instead of stripping
one quotation level like '$@' does.

Signed-off-by: Emilio G. Cota cota@braap.org

This fixes the invocation of programs with quoted parameters, since
'"$@"' preserves the original argument string instead of stripping
one quotation level like '$@' does.

Signed-off-by: Emilio G. Cota <cota@braap.org>
@cota
Copy link
Contributor Author

cota commented Oct 31, 2017

See this comment for more details: https://stackoverflow.com/a/3990540

@HugoGuiroux
Copy link
Contributor

Thanks for the PR and for the link, now I understand why quotes are needed.

@HugoGuiroux HugoGuiroux merged commit 37eb19f into multicore-locks:master Oct 31, 2017
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.

2 participants