Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12171

why variable substitution is so different?

$
0
0

there are two files in current dir

[root@workspace tmp]# lltotal 8-rw-------. 1 root root 6 Mar 31 13:18 *-rw-------. 1 root root 6 Mar 31 13:18 ?[root@workspace tmp]# for f in "`find . -type f`";do echo "$f";done./*./?[root@workspace tmp]# for f in "`find . -type f`";do echo $f;done./* ./? ./* ./?

I am confused about the output of the two echo ...

the differenct is: the double quote around the $f

why the outputs are so, anyone can explain this?

thanx any help in advance.


Viewing all articles
Browse latest Browse all 12171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>