barbara@lemmy.ml to Linux@lemmy.ml • 4 months agowhy does noone inprove bash such that you can write a normal foor loop with whitespace in file names?message-squaremessage-square16 fedilinkarrow-up115file-text
arrow-up115message-squarewhy does noone inprove bash such that you can write a normal foor loop with whitespace in file names?barbara@lemmy.ml to Linux@lemmy.ml • 4 months agomessage-square16 Commentsfedilinkfile-text
minus-squareGenderNeutralBro@lemmy.sdf.orghexbear4·4 months agoThat will work in either zsh or bash, yes. It's a good habit to use quotes, but I am pointing out that quoting and expansion behavior is not the same across all shells. linkfedilink
minus-squarebizdelnick@lemmy.mlhexbear3·4 months agoIt's the same across all POSIX compliant shells. zsh is not POSIX compliant. linkfedilink
That will work in either zsh or bash, yes. It's a good habit to use quotes, but I am pointing out that quoting and expansion behavior is not the same across all shells.
It's the same across all POSIX compliant shells.
zsh
is not POSIX compliant.