From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18192 invoked from network); 9 Jul 1999 10:31:00 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jul 1999 10:31:00 -0000 Received: (qmail 11819 invoked by alias); 9 Jul 1999 10:30:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7068 Received: (qmail 11812 invoked from network); 9 Jul 1999 10:30:55 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Peter Stephenson" , "Zsh hackers list" Subject: RE: PATCH: pws-25: saving old shell functions from overwriting Date: Fri, 9 Jul 1999 14:30:46 +0400 Message-ID: <000601bec9f6$1ac74f80$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <9907041325.AA16621@ibmth.df.unipi.it> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal > > 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