summaryrefslogtreecommitdiff
path: root/tests/herestr1.sub
blob: 0cf80828eac6043e8c21ad912021db7d02760cbd (plain)
1
2
3
4
5
6
7
8
9
10
# problems with word splitting unquoted here-strings present since bash-3.2

x="foo        bar"
cat <<< $x     # Word-splitting appears to collapse the run of whitespace
cat <<< "$x"  # Whitespace preserved, as with here doc

x="qux:::::bax"
IFS=':'
cat <<< $x     # Word-splitting appears to collapse the run of whitespace
cat <<< "$x"  # Whitespace preserved, as with here doc