Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: PATCH: pws-25: saving old shell functions from overwriting



>
> 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