I have a folder with three files:
$ ls
a b c
If I pipe the output of ls
to wc
, I get the right result:
$ ls | wc -l
3
However, when I specify the input to wc
as the output of ls
, I get extra text:
$ wc -l <(ls)
3 /dev/fd/63
Can anyone explain to me what is happening?