我刚刚了解到,引用在某些情况下会产生巨大的影响,我做了一些测试来测试它,这就是我刚刚所做的,
$ xfs=$(find . -type f -perm -111) #find all files with x-perm
$ echo "$xfs"
./b.out
./a.out
$ echo $xfs
./b.out ./a.out #why all in one line, but the above takes two?
如果$xfs
contains \n
,AFAIKecho -e
会扩展\n
,但怎么能echo "$xfs"
占用 2 行?