From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3239 invoked by alias); 3 Apr 2012 10:00:08 -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: 16967 Received: (qmail 10168 invoked from network); 3 Apr 2012 10:00:07 -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=WWiDZwc6kaOGEtKO/E4ThyEb4qq7HgNzlJTZyf4gB0A=; b=GMOdZFNHg/yCBseaCWBh4vOdnn+MJTqnAEbGvnkC86KnoqDm0rOO26lva5oO8wlAFO MZDQPhUW5TMD+OhEQGu9zNA5pBJuiLiMKsAEOHnVb02xVRnRhkWaphk0xqMUYUvV/wSt 0dsmfSsPNIUjNyXb3Ec5wwpSCGf0xofB3OsENjAjMHuaVSS9Ryuy/KktU9McHmP4e1Oq nivaZuacseQ5fAJK6SoaSvZjpyB7DsfBLXtAKgy5A0QHwaCu8Xs5yGwrGMYxQL+mBgYe TozgknRUmNmc5wD/CR99bnKUsHwYWBfg8J19SEW6lZP3oWs64qwQPHI5tLcJZ3U7dtqx 7kXA== MIME-Version: 1.0 In-Reply-To: References: <120327073414.ZM6783@torch.brasslantern.com> <20120402111219.62cbd0c7@pwslap01u.europe.root.pri> <20120402120008.0ed7e583@pwslap01u.europe.root.pri> From: Richard Hartmann Date: Tue, 3 Apr 2012 11:51:47 +0200 Message-ID: Subject: Re: `cd .` in non-existent directory leads into weird corner case To: Mikael Magnusson Cc: Peter Stephenson , zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On Mon, Apr 2, 2012 at 13:10, Mikael Magnusson wrote: > One (semi-)realistic case I came up with, one shell sits in a > directory, someone else first moves the directory, then deletes it, > then the shell tries to 'cd ..'. In this case I would like it to end > up in the new parent directory as it does now [1], not the old > "$PWD:h". (with chasedots/-P) (and even if I did 'cd .' first for some > weird reason). If feasible, I agree that this would be nice. Richard