34558: preexec doc fix.

It was wrongly claming the first parameter was empty if the line was
removed from the history.
This commit is contained in:
Peter Stephenson 2015-02-16 16:12:07 +00:00
parent 8ebe18c081
commit 041a85243e
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2015-02-16 Peter Stephenson <p.stephenson@samsung.com>
* 34558: Doc/Zsh/func.yo: preexec doc erroneously claimed $1
was empty if line removed from history.
2015-02-15 Barton E. Schaefer <schaefer@zsh.org>
* 34551: Src/builtin.c: Avoid adding an extra "/" to the

View File

@ -247,10 +247,10 @@ findex(preexec)
vindex(preexec_functions)
item(tt(preexec))(
Executed just after a command has been read and is about to be
executed. If the history mechanism is active (and the line was not
discarded from the history buffer), the string that the user typed is
passed as the first argument, otherwise it is an empty string. The
actual command that will be executed (including expanded aliases) is
executed. If the history mechanism is active (regardless of whether the
line was discarded from the history buffer), the string that the user
typed is passed as the first argument, otherwise it is an empty string.
The actual command that will be executed (including expanded aliases) is
passed in two different forms: the second argument is a single-line,
size-limited version of the command (with things like function bodies
elided); the third argument contains the full text that is being