shell – IFS working as expected when in bash, not working properly in zsh
shell – IFS working as expected when in bash, not working properly in zsh
It looks like ZSH feature. See on ZSH FAQs.
For only one script you can use -y flag.
zsh -y ./script.sh