Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `cd .` in non-existent directory leads into weird corner case
- X-seq: zsh-users 16956
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: `cd .` in non-existent directory leads into weird corner case
- Date: Mon, 2 Apr 2012 14:59:11 +0200
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- 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==
- In-reply-to: <CAHYJk3Q+xuvMH7RVDif8ExhbrRVnapUwU0cMeTi1+OsaFUR5Yw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAD77+gT4LXRyTL8V1UZrNfCohyJ9peTNdfZ=G7Q-sJcDnyNE8Q@mail.gmail.com> <120327073414.ZM6783@torch.brasslantern.com> <CAD77+gSn9zrTHDMj=zi_Y5M6b86pOizkUin8zVVEAU1aTfuKfw@mail.gmail.com> <CAHYJk3Q+xuvMH7RVDif8ExhbrRVnapUwU0cMeTi1+OsaFUR5Yw@mail.gmail.com>
On Mon, Apr 2, 2012 at 12:15, Mikael Magnusson <mikachu@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author