Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zrecompile and removed functions
- X-seq: zsh-workers 10492
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: zrecompile and removed functions
- Date: Wed, 5 Apr 2000 09:49:53 +0200 (MET DST)
- In-reply-to: "Andrej Borsenkow"'s message of Wed, 5 Apr 2000 11:01:14 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> Removed functions are not handled gracefully:
>
> bor@itsrm2% zrecompile
> re-compiling /home/bor/.zsh.d/std.zwc: failed (missing files)
>
> This is the result of renaming _try and _loop.
It would be possible to make zrecompile be quiet when it can't find
one of the functions, but I don't like that -- which you can see by
the output above, it's printed explicitly by zrecompile.
The problem with silently ignoring missing files is exactly the
situation you encountered: the files may be renamed, so the zwc file
should really be rebuild anew...
> Is it possible to remove function definitions from wordcode file? In
> this case, something like "synchronise wordcode file with directories"
> comes in mind.
...and that's why I use `zrecompile -p' (a small wrapper function that
just calls zrecompile -p with the zwc files I want to keep up to
date). With that it's easy to make zwc files always contain things
like `all functions in directory ...'.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author