LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   bash scripting - read command and input echo (https://www.linuxquestions.org/questions/linux-general-1/bash-scripting-read-command-and-input-echo-858297/)

armandino 01-24-2011 04:27 AM

bash scripting - read command and input echo
 
Is there a way to make the read command show the typed text while it is being typed, so that the user can see and check his input before pressing ENTER?

crts 01-24-2011 04:43 AM

Hi,

can you give an example of what you tried and did not work as expected? AFAIK, echoing the input is the default behavior of read. At least it is for the bash builtin, unless you invoke it with the -s (silent) option.

armandino 01-24-2011 10:24 AM

You are perfectly right.
It was quite a silly question of mine.
I realized my mistake a few minutes after posting.
Maybe I should give up drinking so much orange juice...


All times are GMT -5. The time now is 01:35 PM.