-
Website
http://www.tech-recipes.com/ -
Original page
http://www.tech-recipes.com/rx/278/hide-password-entry-in-bournebash-shell-script/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
davak
83 comments · 1 points
-
Web Design
3 comments · 1 points
-
danishbacker
9 comments · 1 points
-
flexinfo
11 comments · 1 points
-
Tonychelle
4 comments · 1 points
-
-
Popular Threads
-
Facebook: How To Get Only Status Updates on Your FB Home Page
1 week ago · 4 comments
-
Firefox: Enable Case Sensitive Searches When Using Find (Ctrl+F)
4 days ago · 1 comment
-
Windows 7: How To Disable Live Preview for Taskbar Thumbnails
1 week ago · 2 comments
-
Gmail: How to block a sender from your inbox
2 weeks ago · 3 comments
-
Our first iPhone game GreenThumb available in the App Store
3 weeks ago · 2 comments
-
Facebook: How To Get Only Status Updates on Your FB Home Page
read -s secret
trap "stty echo ; exit" 1 2 15
stty -echo
read password
stty echo
trap "" 1 2 15
If the user press Ctrl+C in the password prompt, the normal stty mode will be restored
Q
use closing redirection in the stty command:
stty -echo >&- 2>&-
This helps to avoid obsolete "No terminal" message in the scripts.