Browse Source

read: add -p option (#2724)

* read: add -p option
Fallstar 6 years ago
parent
commit
9c4f5869eb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/common/read.md

+ 4 - 0
pages/common/read.md

@@ -25,3 +25,7 @@
 - Do not let backslash (\) act as an escape character:
 
 `read -r {{variable}}`
+
+- Display a prompt before the input:
+
+`read -p {{"Enter your input here: "}} {{variable}}`