Hi all,
the bash reference manual states in chapter 3.5.7: The shell scans
the results of parameter expansion, command substitution, and
arithmetic expansion that did not occur within double quotes for word
splitting.. I thought I had understood this, but then came across a
problem.
Let's look
On 4/23/10 4:17 AM, Binarus wrote:
The script
echo 'line1' file
echo 'line2' file
RESULT=$(cat file)
echo $RESULT
gives the following output:
line1
line2
I don't understand why: the command substitution $(cat file) is not
within double quotes, so word splitting should be