aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src
diff options
context:
space:
mode:
Diffstat (limited to 'doc_src')
-rw-r--r--doc_src/read.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc_src/read.txt b/doc_src/read.txt
index 845e306d..aee3e85b 100644
--- a/doc_src/read.txt
+++ b/doc_src/read.txt
@@ -19,6 +19,8 @@ The following options are available:
- `-m NAME` or `--mode-name=NAME` specifies that the name NAME should be used to save/load the history file. If NAME is fish, the regular fish history will be available.
+- `-n NCHARS` or `--nchars=NCHARS` causes `read` to return after reading NCHARS characters rather than waiting for a complete line of input.
+
- `-p PROMPT_CMD` or `--prompt=PROMPT_CMD` uses the output of the shell command `PROMPT_CMD` as the prompt for the interactive mode. The default prompt command is <code>set_color green; echo read; set_color normal; echo "> "</code>.
- `-s` or `--shell` enables syntax highlighting, tab completions and command termination suitable for entering shellscript code in the interactive mode.
@@ -35,6 +37,8 @@ The following options are available:
If `-a` or `--array` is provided, only one variable name is allowed and the tokens are stored as an array in this variable.
+See the documentation for `set` for more details on the scoping rules for variables.
+
\subsection read-example Example