-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Bug: make all collected args use single quote #11609
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -291,7 +291,7 @@ cmd="\"$JAVACMD\" \ | |||||
|
|
||||||
| # Add remaining arguments with proper quoting | ||||||
| for arg in "$@"; do | ||||||
| cmd="$cmd \"$arg\"" | ||||||
| cmd="$cmd '$arg'" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Arguments containing literal single quotes will break here. For example, The previous approach of passing If the goal is to prevent
Suggested change
...though honestly keeping the current |
||||||
| done | ||||||
|
|
||||||
| if [ -n "$MAVEN_DEBUG_SCRIPT" ]; then | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes semantics
"@"does already the quoting for us. I think this needs an IT.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, according to your comment, this change is not needed and the issue it fixes is fluke?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't say its fluke, but we need to understand what this change causes and an IT with it. I wouldn't easily apply it.