3

以下のコマンドを見てください。

administrator@ubuntu:~/usp$ cat file
c
b
a
administrator@ubuntu:~/usp$ x="cat file | sort"
administrator@ubuntu:~/usp$ $x
c
b
a
cat: |: 没有那个文件或目录
cat: sort: 没有那个文件或目录

私の質問は、 $x の出力がそうでない理由です:

a
b
c

二重引用符はコマンドの動作を変更しcat file | sortますか?

4

1 に答える 1