Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: autoload
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.
If you must have the .zwc where you've presently got it, then you need
to exclude it from the file pattern $^fpath/*(N.:A) -- which is easiest
if you have extendedglob set, so you can write $^fpath/*~*.zwc(N.:A)
instead.
} /aWorking/Zsh/Boot/ztest:5: parse error near `)'
} /aWorking/Zsh/Boot/ztest:zcompile:10: can't read file: /usr/share
} /zsh/functions/Completion /Base.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.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author