By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!set _title
Not at all. It's a documented feature!That's a hack, which only works if all I need to print is the value of a variable on a separate line and nothing else.
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?