${(V)…}: Show special characters

V makes special characters in the resulting words visible.

Examples

Show special characters
1
2
string=$'bell: \a and backspace: \b'
echo ${(V)string}
Output:
1
bell: ^G and backspace: ^H
BashSupport Pro is a Zsh IDE with support for ${(V)…}try it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal