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

Document that you must quote globs #54

Merged
merged 1 commit into from
Mar 10, 2014
Merged

Conversation

mike-burns
Copy link
Contributor

The shell likes to expand globs as conveniently as possible. Therefore,
quote them when passing them to lsrc(1) and others (e.g. -x '*vim*').

@pbrisbin
Copy link
Contributor

pbrisbin commented Mar 6, 2014

Seems silly that we should document that. There are a number of shell-specific ways to prevent your own arguments from expanding before being passed to the tool. I'd like to check what tools like rsync or tar do in their docs (they except exclude patterns).

@mike-burns
Copy link
Contributor Author

GNU tar(1) doesn't provide a useful manpage, but the info document does talk about this: http://www.manpagez.com/info/tar/tar-1.22/tar_104.php#SEC104

@mike-burns mike-burns added this to the 1.3.0 milestone Mar 7, 2014
The shell likes to expand globs as conveniently as possible. Therefore,
quote them when passing them to lsrc(1) and others (e.g. `-x '*vim*'`).
@mike-burns mike-burns merged commit 937e565 into master Mar 10, 2014
@mike-burns mike-burns deleted the mb-document-quotes branch March 10, 2014 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants