From 50a2ef61bff82d34844f8ed0265b3cbc47e544da Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 11 Apr 2001 05:27:24 +0000 Subject: Updated the "preexec" docs. --- Doc/Zsh/func.yo | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo index 67d496cd6..f6ff2a116 100644 --- a/Doc/Zsh/func.yo +++ b/Doc/Zsh/func.yo @@ -172,8 +172,14 @@ Executed before each prompt. findex(preexec) item(tt(preexec))( Executed just after a command has been read and is about to be -executed. If the history mechanism is active, the string to be -executed is passed as an argument. +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 +passed in two differnt 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 what what is being +executed. ) item(tt(TRAP)var(NAL))( cindex(signals, trapping) -- cgit 1.4.1