From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7229 invoked by alias); 2 Apr 2012 12:59:50 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16956 Received: (qmail 14198 invoked from network); 2 Apr 2012 12:59:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZoSKm21Mtiwf23MlQAfX574Xj8cpeOckzOUkYaGbxOU=; b=kuEEKzdvcABb18xBv/fntgK6DEJpiwd9DUZT89czSpL3JVnA9c0TRxOQHKNK6tNw58 W68NVHmpSvYlHEqJbEfqynR1trKrqjmeub4RCg1yvKSHg3Sn2NezP4NjzZ/+nbdkzwHX Ej+LTufNugwaplYE718+H5yGGCSqpPDUNOR6Ilx5ISOiDBlgS0TL0iDhGGf1ZVGi2RpO QeSjKHMXjE/bLnbc7W43AkycdmBy6P1xmN0O6Iu97v+k2tBHRFf8Wv0tF31ZS9+GMOlh IcEqRd3qgqopIfbd5mwt6ks5YUBov+ndTfJ2USByZCMnKVUQBYa2ex8MAgu2FsTgInjq QCGQ== MIME-Version: 1.0 In-Reply-To: References: <120327073414.ZM6783@torch.brasslantern.com> From: Richard Hartmann Date: Mon, 2 Apr 2012 14:59:11 +0200 Message-ID: Subject: Re: `cd .` in non-existent directory leads into weird corner case To: Mikael Magnusson Cc: Bart Schaefer , zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On Mon, Apr 2, 2012 at 12:15, Mikael Magnusson wrote: > Weird, when I try making a directory and remove it, I can still cd .. > to the parent... I can even cd into the dir with another shell (via > /proc/$$/cwd), and cd .. to the correct parent dir from that other > shell. We must be trying to do different things... % zsh -f adamantium% mkdir blubb adamantium% cd blubb adamantium% pwd /home/richih/blubb adamantium% rmdir /home/richih/blubb adamantium% cd . adamantium% pwd . adamantium% stat . File: `.' Size: 6 Blocks: 0 IO Block: 4096 directory Device: 802h/2050d Inode: 134300028 Links: 0 Access: (0755/drwxr-xr-x) Uid: ( 1000/ richih) Gid: ( 1000/ richih) Access: 2012-04-02 14:56:15.416702007 +0200 Modify: 2012-04-02 14:56:15.416702007 +0200 Change: 2012-04-02 14:56:30.056251660 +0200 Birth: - adamantium% mkdir test mkdir: cannot create directory `test': No such file or directory adamantium% touch test touch: cannot touch `test': No such file or directory adamantium% Richard