read: add -p option (#2724)

* read: add -p option
italian
Fallstar 2019-01-23 14:37:43 +01:00 committed by Muhammad Falak R Wani
parent c3d16cdf9a
commit 9c4f5869eb
1 changed files with 4 additions and 0 deletions

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