Bug 211128 - sh(1)'s read built-in should support -s option ("silent mode")
Summary: sh(1)'s read built-in should support -s option ("silent mode")
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.0-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2016-07-14 21:19 UTC by Enji Cooper
Modified: 2016-07-14 21:36 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer 2016-07-14 21:19:26 UTC
Both sh and zsh support "silent mode", which basically doesn't output echoed characters. This is really helpful for reading in data like passwords.
Comment 1 Enji Cooper freebsd_committer 2016-07-14 21:36:47 UTC
(In reply to Ngie Cooper from comment #0)

stty -echo
read -p "my prompt" var
stty echo 

works too although. Hmm.