read: Add parameter for reading input silently (#2731)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
e921d0e6b6
commit
95d51a4306
@@ -29,3 +29,7 @@
|
|||||||
- Display a prompt before the input:
|
- Display a prompt before the input:
|
||||||
|
|
||||||
`read -p {{"Enter your input here: "}} {{variable}}`
|
`read -p {{"Enter your input here: "}} {{variable}}`
|
||||||
|
|
||||||
|
- Do not echo typed characters (silent mode):
|
||||||
|
|
||||||
|
`read -s {{variable}}`
|
||||||
|
Reference in New Issue
Block a user