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

(#20912) Split argments while maintaining quoted strings #189

Conversation

joejulian
Copy link
Contributor

In delete_args, the parsing routine would split the line, but combine everything between the first and the last quote on the line. If there were multiple quoted strings this would combine arguments that should have been separate.

This combines all that into a single regex split that will keep quoted strings together.

Github Bug: 182
Signed-off-by: Joe Julian me@joejulian.name (signed CLA)

Github Bug: 182
Signed-off-by: Joe Julian <me@joejulian.name> (signed CLA)
@kbarber-jenkins-bot
Copy link

Can one of the admins verify this patch?

@kbarber-jenkins-bot
Copy link

Can one of the admins verify this patch?

@kbarber
Copy link
Contributor

kbarber commented May 25, 2013

ok to test

@kbarber-jenkins-bot
Copy link

Merged build triggered. (Status: PENDING, Details: null)

@kbarber-jenkins-bot
Copy link

Merged build started. (Status: PENDING, Details: http://box.bob.sh:8080/job/puppetlabs-firewall-system/205/)

@kbarber-jenkins-bot
Copy link

Merged build finished. (Status: SUCCESS, Details: http://box.bob.sh:8080/job/puppetlabs-firewall-system/205/)

@kbarber
Copy link
Contributor

kbarber commented May 28, 2013

So this patch here: kbarber@f921bdc replicates the issue. Can you cherry pick this into your branch?

Signed-off-by: Ken Barber <ken@bob.sh>
@kbarber-jenkins-bot
Copy link

Merged build triggered. (Status: PENDING, Details: null)

@kbarber-jenkins-bot
Copy link

Merged build started. (Status: PENDING, Details: http://box.bob.sh:8080/job/puppetlabs-firewall-system/213/)

@kbarber-jenkins-bot
Copy link

Merged build finished. (Status: SUCCESS, Details: http://box.bob.sh:8080/job/puppetlabs-firewall-system/213/)

kbarber added a commit that referenced this pull request May 28, 2013
…hile_maintaining_quoted_strings

(#20912) Split argments while maintaining quoted strings
@kbarber kbarber merged commit 709ef28 into puppetlabs:master May 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants