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 argument tokenization #66

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

matthiasbeyer
Copy link
Member

The single and double quotes used to group words
into a single command line argument must be trimmed from the tokens.

E.g. the argument of cmd "foo bar" is the string "foo bar" and not "\"foo bar\"".


Tests locally do not run for this, but lets see what CI tells us. Maybe my setup is bogus.

Closes #39

The single and double quotes used to group words
into a single command line argument must be trimmed from the tokens.

E.g. the argument of `cmd "foo bar"` is the string `"foo bar"`
and not `"\"foo bar\""`.

Signed-off-by: Didier Wenzek <[email protected]>
Signed-off-by: Matthias Beyer <[email protected]>
@matthiasbeyer matthiasbeyer force-pushed the fix-argument-tokenization branch from 9b2a54f to 2aa771b Compare September 12, 2022 11:26
@matthiasbeyer
Copy link
Member Author

Nice, so it was indeed my local setup that made the tests confused. I guess we can

bors merge

@didier-wenzek thanks for contributing to this crate.

@bors
Copy link
Contributor

bors bot commented Sep 12, 2022

Build succeeded:

@bors bors bot merged commit f7d3e18 into rust-cli:master Sep 12, 2022
@matthiasbeyer matthiasbeyer deleted the fix-argument-tokenization branch September 12, 2022 11:31
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