[英]How to show the result of command read in emacs's shell mode?
版本信息:
命令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.