mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-10 11:01:32 +01:00
48810: fix potential name clash in test case for autoloading
This commit is contained in:
parent
d0e071c5f0
commit
34a8fecf7b
2 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
2021-05-15 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 48810: Test/C04funcdef.ztst: name clash in test for autoloading
|
||||
|
||||
* 48790: Src/Zle/compcore.c: COMPLETE_IN_WORD inside brace-param
|
||||
|
||||
* 48710: Completion/Zsh/Command/_zed, Doc/Zsh/contrib.yo,
|
||||
|
|
|
|||
|
|
@ -508,7 +508,8 @@
|
|||
|
||||
# keep spec from getting loaded in parent shell for simplicity
|
||||
(
|
||||
if whence spec; then print spec already loaded >&2; exit 1; fi
|
||||
if [[ $(whence -v spec) = 'spec is a shell function from '$PWD/* ]]
|
||||
then print spec already loaded >&2; exit 1; fi
|
||||
autoload -Uz $PWD/spec
|
||||
autoload -Uz $PWD/extra/spec
|
||||
spec
|
||||
|
|
@ -517,7 +518,8 @@
|
|||
>I have been loaded by explicit path.
|
||||
|
||||
(
|
||||
if whence spec; then print spec already loaded >&2; exit 1; fi
|
||||
if [[ $(whence -v spec) = 'spec is a shell function from '$PWD/* ]]
|
||||
then print spec already loaded >&2; exit 1; fi
|
||||
autoload -Uz $PWD/extra/spec
|
||||
autoload spec
|
||||
spec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue