簡體   English   中英

如何顯示在emacs的shell模式下讀取命令的結果?

[英]How to show the result of command read in emacs's shell mode?

版本信息:

  • GNU Emacs 25.1.1
  • GNOME終端3.20.2

命令read -ei "hi"會顯示出結果hi在侏儒末端(bash)的,但不會顯示結果hi在emacs中的殼模式(MX殼)。

從保羅的回答:

read -ei "hi" ,gnome-terminal(bash)中的Cm將顯示:

[d@localhost Desktop]$ read -ei "hi"
hi

在emacs的shell模式下, read -ei "hi"Cm將顯示:

[d@localhost Desktop]$ read -ei "hi"

我希望在emacs的shell模式下看到以下內容:

[d@localhost Desktop]$ read -ei "hi"
hi

那么如何顯示在emacs的shell模式下read命令的結果呢?

嘗試添加回顯:

read -ei "hi" && echo $REPLY

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM