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

Improved listing of matching files with list-files: shell and list-files: escape options #58

Merged
merged 2 commits into from Dec 17, 2020

Conversation

dorny
Copy link
Owner

@dorny dorny commented Dec 17, 2020

Previous implementation of shell format always wrapped filename with single quotes.
This should normally work fine with bash but in #54 it was reported to cause some issues.
This PR changes implementation of shell option to not quote filename if it's not necessary and also includes alternative format using backslashes to escape characters.

Options for list-files input:

  • shell: Space delimited list usable as command line argument list in Linux shell.
    If needed it uses single or double quotes to wrap filename with unsafe characters.
  • escape: Space delimited list usable as command line argument list in Linux shell.
    Backslash escapes every potentially unsafe character.

Closes #54

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.

[Feature] unquoted list of files
1 participant