]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/herestr1.sub
Bash-5.2-rc4 release
[thirdparty/bash.git] / tests / herestr1.sub
1 # problems with word splitting unquoted here-strings present since bash-3.2
2
3 x="foo bar"
4 cat <<< $x # Word-splitting appears to collapse the run of whitespace
5 cat <<< "$x" # Whitespace preserved, as with here doc
6
7 x="qux:::::bax"
8 IFS=':'
9 cat <<< $x # Word-splitting appears to collapse the run of whitespace
10 cat <<< "$x" # Whitespace preserved, as with here doc