Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: autoload
On 09/17/2015 10:34 AM, Bart Schaefer wrote:
On Sep 17, 8:54am, Ray Andrews wrote:
} Subject: autoload
}
} # Assume starting here with the default $fpath
I think the problem here is that you've put a .zwc file IN a directory
that is itself listed in $fpath. This is typically a no-no. You want
a .zwc file to be treated as if it WERE a directory, NOT as if it were
one of the function definition files IN the directory.
I'm close to certain I haven't, here's all .zwc on my system:
/usr/share/zsh/functions/VCS_Info/Backends.zwc
/usr/share/zsh/functions/Exceptions.zwc
/usr/share/zsh/functions/VCS_Info.zwc
/usr/share/zsh/functions/Prompts.zwc
/usr/share/zsh/functions/MIME.zwc
/usr/share/zsh/functions/Completion.zwc
/usr/share/zsh/functions/TCP.zwc
/usr/share/zsh/functions/Zle.zwc
/usr/share/zsh/functions/Chpwd.zwc
/usr/share/zsh/functions/Misc.zwc
/usr/share/zsh/functions/Calendar.zwc
/usr/share/zsh/functions/Completion/Debian.zwc
/usr/share/zsh/functions/Completion/X.zwc
/usr/share/zsh/functions/Completion/openSUSE.zwc
/usr/share/zsh/functions/Completion/AIX.zwc
/usr/share/zsh/functions/Completion/Mandriva.zwc
/usr/share/zsh/functions/Completion/Base.zwc
/usr/share/zsh/functions/Completion/Zsh.zwc
/usr/share/zsh/functions/Completion/Linux.zwc
/usr/share/zsh/functions/Completion/Cygwin.zwc
/usr/share/zsh/functions/Completion/Solaris.zwc
/usr/share/zsh/functions/Completion/Darwin.zwc
/usr/share/zsh/functions/Completion/Redhat.zwc
/usr/share/zsh/functions/Completion/BSD.zwc
/usr/share/zsh/functions/Completion/Unix.zwc
/usr/share/zsh/functions/Zftp.zwc
/usr/share/zsh/functions/Newuser.zwc
See, zcompile (without the -t) is attempting to parse Base.zwc as a
function definition, and getting what looks like garbage to the parser.
(I have no idea where those spaces in the path are coming from.)
It isn't possible I've somehow screwed up $fpath? I understand it's
hard coded at startup,
least it seems to always be restored. Anyhow I've not moved or played
with Base.zwc. I did try
creating a .zwc yesterday but it's long dead.
This seems to be the troublesome line:
zcompile $zsh_default_functions $^fpath/*(N.:A)
... on a hunch:
zcompile $zsh_default_functions $^fpath/*(N.:t) << 't' being a
new friend
... the previous error msgs are gone but:
$ zsh
/aWorking/Zsh/Boot/ztest:zcompile:13: can't open file: _bootctl
Messages sorted by:
Reverse Date,
Date,
Thread,
Author