闲人草堂

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

今天发现了一个小陷阱,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的解析过程先把``引起来的语句执行完毕,该输出替换掉``及引在其中的语句。接着执行``外面的语句。

posted on 2011-06-13 23:03  闲人草堂  阅读(661)  评论(0编辑  收藏  举报