From c4f33330f6797d0c199abf522f79c3ccac88ed55 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 6 Aug 2008 19:51:04 +0000 Subject: 25409: fix eval's use of lastval --- Doc/Zsh/builtins.yo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Doc') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index d7e3526cb..bcd03be98 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -382,7 +382,10 @@ findex(eval) cindex(evaluating arguments as commands) item(tt(eval) [ var(arg) ... ])( Read the arguments as input to the shell and execute the resulting -command in the current shell process. +command(s) in the current shell process. The return status is the +same as if the commands had been executed directly by the shell; +if there are no var(args) or they contain no commands (i.e. are +an empty string or whitespace) the return status is zero. ) item(tt(exec) [ tt(-cl) ] [ tt(-a) var(argv0) ] var(simple command))( Replace the current shell with an external command rather than forking. -- cgit 1.4.1