about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2004-09-09 15:03:31 +0000
committerBart Schaefer <barts@users.sourceforge.net>2004-09-09 15:03:31 +0000
commit6f607e1098b9be314d551ea475ca45c368953a03 (patch)
treeb4874751f347177f837538b61d5845b2f4c97f5a /Test
parent6b1dc0f701754f244cd090c8ec74db5af4a418ed (diff)
downloadzsh-6f607e1098b9be314d551ea475ca45c368953a03.tar.gz
zsh-6f607e1098b9be314d551ea475ca45c368953a03.tar.xz
zsh-6f607e1098b9be314d551ea475ca45c368953a03.zip
Tests for EVAL_LINENO and for "command" used with POSIX_BUILTINS.
Diffstat (limited to 'Test')
-rw-r--r--Test/E01options.ztst16
1 files changed, 15 insertions, 1 deletions
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() {