diff options
author | Joseph Tannhuber <sepp.tannhuber@yahoo.de> | 2014-08-19 14:28:08 +0200 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-03 22:48:37 -0700 |
commit | 4acea72700a7738f1a3258cab226f6153a65ea94 (patch) | |
tree | d7604b0291aade38efd1fc810351014436645687 /doc_src | |
parent | 677cee44ad192ddcd9a397e82092a3dd27386521 (diff) |
New -n option for read builtin
Usage: read -n nchars
Reads maximum of nchars characters. If nchars <= 0, there's no limit.
Diffstat (limited to 'doc_src')
-rw-r--r-- | doc_src/read.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc_src/read.txt b/doc_src/read.txt index 4f1760a5..48ae9b05 100644 --- a/doc_src/read.txt +++ b/doc_src/read.txt @@ -14,6 +14,7 @@ The following options are available: - <tt>-g</tt> or <tt>--global</tt> makes the variables global. - <tt>-l</tt> or <tt>--local</tt> makes the variables local. - <tt>-m NAME</tt> or <tt>--mode-name=NAME</tt> 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. +- <tt>-n NCHARS</tt> or <tt>--nchars=NCHARS</tt> causes \c read to return after reading NCHARS characters rather than waiting for a complete line of input. - <tt>-p PROMPT_CMD</tt> or <tt>--prompt=PROMPT_CMD</tt> uses the output of the shell command \c PROMPT_CMD as the prompt for the interactive mode. The default prompt command is <tt>set_color green; echo read; set_color normal; echo "> "</tt>. - <code>-s</code> or <code>--shell</code> enables syntax highlighting, tab completions and command termination suitable for entering shellscript code in the interactive mode. - <code>-u</code> or <code>--unexport</code> prevents the variables from being exported to child processes (default behaviour). |