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

Escaped spaces at the end #3

Closed
junegunn opened this issue Jan 20, 2017 · 1 comment
Closed

Escaped spaces at the end #3

junegunn opened this issue Jan 20, 2017 · 1 comment

Comments

@junegunn
Copy link

Hi, I noticed shellwords.Parse does not handle backslash-escaped whitespaces at the end of the argument.

words, err := shellwords.Parse("trailing escaped space\\ ")
// invalid command line string

This is due to strings.TrimSpace at the beginning of the function.

@mattn mattn closed this as completed in 33bd8f1 Jan 20, 2017
@junegunn
Copy link
Author

Thanks for the rapid fix!

lunixbochs pushed a commit to lunixbochs/go-shellwords that referenced this issue May 4, 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

No branches or pull requests

1 participant