1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

Tests for EVAL_LINENO and for "command" used with POSIX_BUILTINS.

This commit is contained in:
Bart Schaefer 2004-09-09 15:03:31 +00:00
parent 6b1dc0f701
commit 6f607e1098

@ -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() {