~$ echo $(ls)
arguments.txt cecho.sh Desktop Documents Downloads example.txt Music Pictures Public
~$ echo $(ls "*.txt")
ls: cannot access *.txt: No such file or directory
Why does the 2nd subshell command fails?
Remove the quotes around |
|||||
|
In the same way that you can't run
A better way to do this is to not use
|
|||||
|