read: add -p option (#2724)

* read: add -p option
This commit is contained in:
Fallstar
2019-01-23 14:37:43 +01:00
committed by Muhammad Falak R Wani
parent c3d16cdf9a
commit 9c4f5869eb

View File

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