about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-09-03 09:47:44 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-09-03 09:47:44 +0000
commit97fd0d9b8907827d786b92f6cc66618d57ac7518 (patch)
tree84e4930f9db51eb8f5bb82006fd752cf8900fdc3 /Doc
parentfb7907257503b2c8915d3623c694bfb21122b7df (diff)
downloadzsh-97fd0d9b8907827d786b92f6cc66618d57ac7518.tar.gz
zsh-97fd0d9b8907827d786b92f6cc66618d57ac7518.tar.xz
zsh-97fd0d9b8907827d786b92f6cc66618d57ac7518.zip
20308: add EVAL_LINENO option
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/options.yo15
1 files changed, 14 insertions, 1 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 49f65d186..fdd498c50 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -929,7 +929,7 @@ scripts.
 )
 pindex(ERR_RETURN)
 cindex(function return, on error)
-cidnex(return from function, on error)
+cindex(return from function, on error)
 item(tt(ERR_RETURN))(
 If a command has a non-zero exit status, return immediately from the
 enclosing function.  The logic is identical to that for tt(ERR_EXIT),
@@ -937,6 +937,19 @@ except that an implicit tt(return) statement is executed instead of an
 tt(exit).  This will trigger an exit at the outermost level of a
 non-interactive script.
 )
+pindex(EVAL_LINENO)
+cindex(line number, in evaluated expression)
+item(tt(EVAL_LINENO) <Z>)(
+If set, line numbers of expressions evaluated using the builtin tt(eval)
+are tracked separately of the enclosing environment.  This applies both
+to the parameter tt(LINENO) and the line number output by the prompt
+escape tt(%i).  If the option is set, the prompt escape tt(%N) will output
+the string `tt((eval))' instead of the script or function name as an
+indication.   (The two prompt escapes are typically used in the parameter
+tt(PS4) to be output when the option tt(XTRACE) is set.)  If
+tt(EVAL_LINENO) is unset, the line number of the surrounding script or
+function is retained during the evaluation.
+)
 pindex(EXEC)
 cindex(command execution, enabling)
 item(tt(EXEC) (tt(PLUS()n), ksh: tt(PLUS()n)) <D>)(