Skip to content

Fix argument tokenization - #66

Merged
bors[bot] merged 1 commit into
rust-cli:masterfrom
matthiasbeyer:fix-argument-tokenization
Sep 12, 2022
Merged

Fix argument tokenization#66
bors[bot] merged 1 commit into
rust-cli:masterfrom
matthiasbeyer:fix-argument-tokenization

Conversation

@matthiasbeyer

Copy link
Copy Markdown
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 <didier.wenzek@acidalie.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@matthiasbeyer
matthiasbeyerforce-pushed the fix-argument-tokenization branch from 9b2a54f to 2aa771bCompareSeptember 12, 2022 11:26
@matthiasbeyer

Copy link
Copy Markdown
MemberAuthor

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

borsBot commented Sep 12, 2022

Copy link
Copy Markdown
Contributor

Build succeeded:

@bors
borsBot merged commit f7d3e18 into rust-cli:masterSep 12, 2022
@matthiasbeyer
matthiasbeyer deleted the fix-argument-tokenization branch September 12, 2022 11:31
Sign up for freeto 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

@matthiasbeyer@didier-wenzek