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

Tilde ~ sometimes not quoted #4

Closed
drok opened this issue Nov 5, 2023 · 0 comments
Closed

Tilde ~ sometimes not quoted #4

drok opened this issue Nov 5, 2023 · 0 comments

Comments

@drok
Copy link

drok commented Nov 5, 2023

Ref: ljharb#9

The tilde needs to be quoted because there is an entire chapter of possibilities for Tilde expansion in the bash manpage, other than the obvious shorthand for the ${HOME} expression.

drok added a commit that referenced this issue Nov 5, 2023
In many shells, ~ is a shorthand for ${HOME}, and there are other
expansion as well ~+N and ~-N expand to directories from the history.

The ~ is always quoted at the beginning of a word, or following `=` or
`:`

Fixes #4 and ljharb#9

Author-Rebase-Consent: https://No-rebase.github.io
@drok drok closed this as completed in 0837c38 Nov 5, 2023
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