Quote:
Originally Posted by J65nko
...
THAT=" zz
yy
xx
ww
"
...
echo THAT: [${THAT}][/code]
...
THAT: [ zz yy xx ww ][/code]Who can explain?
|
[, ], zz, yy, xx, ww become individual arguments (default IFS is whitespace) to the echo command & echo prints its arguments separated by a space.
You have used single/double quotes to define $THIS & $THAT respectively but it makes no difference as the quotes are not preserved in the shell variable.
Was that the question?