mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-11 20:31:11 +01:00
Tests for EVAL_LINENO and for "command" used with POSIX_BUILTINS.
This commit is contained in:
parent
6b1dc0f701
commit
6f607e1098
1 changed files with 15 additions and 1 deletions
|
@ -344,6 +344,14 @@
|
||||||
0:NO_EXEC option
|
0:NO_EXEC option
|
||||||
>before
|
>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
|
# The EXTENDED_GLOB test doesn't test globbing fully --- it just tests
|
||||||
# that certain patterns are treated literally with the option off
|
# that certain patterns are treated literally with the option off
|
||||||
# and as patterns with the option on.
|
# and as patterns with the option on.
|
||||||
|
@ -706,14 +714,20 @@
|
||||||
?(eval):14: no such file or directory: pathtestdir/findme
|
?(eval):14: no such file or directory: pathtestdir/findme
|
||||||
|
|
||||||
setopt posixbuiltins
|
setopt posixbuiltins
|
||||||
|
PATH= command -v print
|
||||||
|
PATH= command -V print
|
||||||
PATH= command print foo
|
PATH= command print foo
|
||||||
unsetopt posixbuiltins
|
unsetopt posixbuiltins
|
||||||
print unsetting...
|
print unsetting...
|
||||||
|
PATH= command -V print
|
||||||
PATH= command print foo
|
PATH= command print foo
|
||||||
127:POSIX_BUILTINS option
|
127:POSIX_BUILTINS option
|
||||||
|
>print
|
||||||
|
>print is a shell builtin
|
||||||
>foo
|
>foo
|
||||||
>unsetting...
|
>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.
|
# This option seems to be problematic. I don't quite know how it works.
|
||||||
## func() {
|
## func() {
|
||||||
|
|
Loading…
Reference in a new issue