4 ms·
Spaces in filenames is more a Bash problem. Zsh does far less automatic word splitting. > Note in particular the fact that words of unquoted parameters are not
by Calzifer 4y ago
Spaces in filenames is more a Bash problem. Zsh does far less automatic word splitting.
> Note in particular the fact that words of unquoted parameters are not automatically split on whitespace unless the option SH_WORD_SPLIT is set; see references to this option below for more details. This is an important difference from other shells.
https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parame...
The example works the same in Zsh. (of cause with the slightly different for loop syntax)
for i in *; do echo "<$i>"; done