LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2011, 04:27 AM   #1
armandino
Member
 
Registered: Oct 2005
Posts: 72

Rep: Reputation: 15
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?
 
Old 01-24-2011, 04:43 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
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.
 
Old 01-24-2011, 10:24 AM   #3
armandino
Member
 
Registered: Oct 2005
Posts: 72

Original Poster
Rep: Reputation: 15
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Scripting: Echo to Standard Error colonel_t Linux - Newbie 6 03-03-2014 08:58 AM
Bash Scripting: Pipe input to script vs. $1 jhwilliams Linux - Software 3 12-21-2007 10:54 PM
Bash scripting: redirecting input to a command hal8000b Programming 2 12-10-2007 07:29 AM
Bash scripting and user input Woodsman Slackware 13 11-02-2005 02:20 PM
Bash Scripting - echo command question gbhil Programming 2 04-27-2005 07:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration