Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: PATCH: pws-25: saving old shell functions from overwriting
- X-seq: zsh-workers 7068
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxxxxxxxxxxxx>, "Zsh hackers list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: PATCH: pws-25: saving old shell functions from overwriting
- Date: Fri, 9 Jul 1999 14:30:46 +0400
- Importance: Normal
- In-reply-to: <9907041325.AA16621@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> I half promised this some time ago. When installing shell functions, an
> existing shell function of the same name which differs from the new one is
> moved to the file `.old'. This is likely to be unnecessary if the function
> came from a previous zsh distribution, but it's impossible to tell if it's
> been modified locally, so this is safer. We could alternatively have some
> convention about how to recognise an unmodified distribution file, but
> there's no guarantee people will stick to it.
>
I just realised, that it may be better to save the whole directory (in
functions.old probably). Moving files to *.old has potential problem, that if
anybody autloads whole $fpath, he will suddenly get a lot of fn.old functions.
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author