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

Don't perform pathname expansion on quoted strings #24

Closed
emersion opened this issue Aug 12, 2018 · 1 comment
Closed

Don't perform pathname expansion on quoted strings #24

emersion opened this issue Aug 12, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@emersion
Copy link
Owner

$ mkdir "*"
$ touch "*/thing"
$ ls "*/"*
'*/thing'
@emersion emersion added the bug Something isn't working label Aug 12, 2018
@emersion
Copy link
Owner Author

emersion commented Aug 31, 2018

Related: don't perform field splitting and pathname expansion on parameter expansion results in double quotes.

$ a='*'
$ echo "$a"
*

emersion added a commit that referenced this issue Sep 18, 2019
Instead of converting fields to strings, keep them as words. This is necessary
for preventing pathname expansion from expanding quoted words.

References: #24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant