Explorar o código

read: Add parameter for reading input silently (#2731)

laeccan %!s(int64=6) %!d(string=hai) anos
pai
achega
95d51a4306
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      pages/common/read.md

+ 4 - 0
pages/common/read.md

@@ -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}}`