${name:Q}
: Remove quotes
Removes one level of quote from the substituted words.
Links
Examples
- Remove quotes and escapes from variable value
- Output:
1 2
quoted="hello\tworld" echo $quoted:Q
1
hellotworld
BashSupport Pro is a Zsh IDE with support for $varName:Q – try it now!