From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25325 invoked from network); 15 Jul 1999 11:58:32 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Jul 1999 11:58:32 -0000 Received: (qmail 1982 invoked by alias); 15 Jul 1999 11:58:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7156 Received: (qmail 1974 invoked from network); 15 Jul 1999 11:58:25 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "ZSH workers mailing list" Subject: RE: PATCH: 3.1.6-test-1: strange cd behaviour Date: Thu, 15 Jul 1999 15:57:59 +0400 Message-ID: <000901beceb9$48b6be40$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) Importance: Normal In-reply-to: <9907141232.AA36925@ibmth.df.unipi.it> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > > This does it: as you see it's a significant chunk of extra code with no > other aim than making sure cd foo/.. doesn't work if foo doesn't exist > without preventing you from changing back up to directories that still > exist if yours doesn't. But life is non-optimal. If anybody has any > better suggestions...? > Yes. Completely remove this. If current dir no more exists, the error message here is more of a feature - it indicates, that somethig went wrong. User always has ``cd'' or even ``cd /'' fallback. I'm afraid, in this case zsh oversmarts itself. And after all, with all symlinks around, you cannot even be sure, that $PWD is prefix of current dir :-( (Our /bin/sh resolves links while /bin/ksh does not). /andrej