* autoload -X
@ 2016-05-17 8:37 Sebastian Gniazdowski
2016-05-17 8:57 ` Sebastian Gniazdowski
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2016-05-17 8:37 UTC (permalink / raw)
To: Zsh hackers list
Hello,
echo "echo Hello" > aload
function aload { local FPATH=`pwd`:$FPATH; autoload -X; }
aload
output:
(eval):1: autoload: function definition file not found
This once worked, I even have old video from this:
https://asciinema.org/a/2dnx2ky1q14hna6bvwfrwsvkr
And it still works inside my Zplugin. Tested various zsh versions,
5.0.2, 5.0.8, 5.2
Best regards,
Sebastian Gniazdowski
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: autoload -X
2016-05-17 8:37 autoload -X Sebastian Gniazdowski
@ 2016-05-17 8:57 ` Sebastian Gniazdowski
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Gniazdowski @ 2016-05-17 8:57 UTC (permalink / raw)
To: Zsh hackers list
Sorry, I've had:
autoload() {
builtin autoload "$@"
return $?
[ "$GLOBAL_VAR2" -lt "3" ] && echo "My own autoload[$GLOBAL_VAR2] $@"
(( GLOBAL_VAR2 ++ ))
builtin autoload "$@"
}
in ~/.zshrc. It tried to autoload "autoload" when was called with -X.
Best regards,
Sebastian Gniazdowski
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-17 8:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 8:37 autoload -X Sebastian Gniazdowski
2016-05-17 8:57 ` Sebastian Gniazdowski
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).