今天發現了一個小陷阱,emacs中的eshell和其他shell在解釋backticks(“`”)符號上完全不同。上網搜了一下,終于發現了答案。
http://www.emacswiki.org/emacs/EshellBackticks
There are no `backticks` per se in eshell. Here is how backticks work in other shells: The commands enclosed in backticks are executed, and their output replaces the commands in backticks. Then the surrounding commands are executed.
eshell:
不解析backticks符號。
other shells:
其他shell的解析過程先把``引起來的語句執行完畢,該輸出替換掉``及引在其中的語句。接著執行``外面的語句。
浙公網安備 33010602011771號