From 6f607e1098b9be314d551ea475ca45c368953a03 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 9 Sep 2004 15:03:31 +0000 Subject: [PATCH] Tests for EVAL_LINENO and for "command" used with POSIX_BUILTINS. --- Test/E01options.ztst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Test/E01options.ztst b/Test/E01options.ztst index c73af42cb..82b779850 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -344,6 +344,14 @@ 0:NO_EXEC option >before + setopt NO_eval_lineno + eval 'print $LINENO' + setopt eval_lineno + eval 'print $LINENO' +0:EVAL_LINENO option +>2 +>1 + # The EXTENDED_GLOB test doesn't test globbing fully --- it just tests # that certain patterns are treated literally with the option off # and as patterns with the option on. @@ -706,14 +714,20 @@ ?(eval):14: no such file or directory: pathtestdir/findme setopt posixbuiltins + PATH= command -v print + PATH= command -V print PATH= command print foo unsetopt posixbuiltins print unsetting... + PATH= command -V print PATH= command print foo 127:POSIX_BUILTINS option +>print +>print is a shell builtin >foo >unsetting... -?(eval):5: command not found: print +>print is a shell builtin +?(eval):8: command not found: print # This option seems to be problematic. I don't quite know how it works. ## func() {