${(0)…}: Split at null byte

0 splits word at the null byte.

Examples

Splitting a string into words at null bytes
1
2
string=$'several words\0separated by\0null bytes'
echo ${(0)string}
Output:
1
several words separated by null bytes
BashSupport Pro ist eine Zsh IDE mit Unterstützung für ${(0)…} - probieren Sie es jetzt aus!
© 2020–2026 Joachim Ansorg
Impressum
Datenschutz
Rechtliches