v:\> echo "%_title" "yy && xx"
v:\> setdos /x-5 v:\> echo %_title yy && xx v:\> setdos /x+5
It's more useful than echoing "yy && xx" and your suggestion is doesn't do much for me. What's $str?I don't see a use case for this to begin with.
But there's multiple ways to achieve same effect in POSIX system.
Most portable is to use sed to insert EOL's between characters. Something like
echo "$str" | sed -e "s/./\\0\\n/g;"
I was echoing arbitrary string. But stumbled upon a file name containing "&", which break the script I used.It's more useful than echoing "yy && xx" and your suggestion is doesn't do much for me.
An arbitrary string you want to split by characters.What's $str?