1
0
Fork 0
bash/tests/herestr1.sub
Daniel Baumann fa1b3d3922
Adding upstream version 5.2.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 06:49:21 +02:00

10 lines
379 B
Text

# 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