bash - How to show the result of command read in emacs's shell mode? -




version info:

  • gnu emacs 25.1.1
  • gnome terminal 3.20.2

the command read -ei "hi" show result hi in gnome-terminal(bash), not show result hi in emacs's shell mode(m-x shell).

from paul's answer:

read -ei "hi" , c-m in gnome-terminal(bash) show:

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

read -ei "hi" , c-m in emacs's shell mode show:

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

what expect see in emacs's shell mode:

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

so how show result of command read in emacs's shell mode?

try adding echo:

read -ei "hi" && echo $reply 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -