Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
`cd .` in non-existent directory leads into weird corner case
- X-seq: zsh-users 16921
- From: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: `cd .` in non-existent directory leads into weird corner case
- Date: Tue, 27 Mar 2012 02:56:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=25nZeMb5jxyGAO+pCXcuisgaw61BLdHTd3YPKuBJog8=; b=1GdRD9/ZL4V/RpQfGscImxecPd/+8WFra+DQwXNfnPYVm8kb0zpr9fknF+mNo2zfc7 YVjfRarScwI5QHkXgmHvo4E6y3TwNt50tBd97VLhapGAfm1o2Acp8r8vJPpqISIlEkP+ ID0DfMMsQWwzrBZ2o8KfHrx54X7zfT31MZsIO2xoFdrnwY8i6fMsEdc3UuVWpQzeCuxo r+Ch9xUxRir+G/865Z9lPUrGl+hSZwwq+1Oea5vGoPMUOoR98M3WmRM5pbUuGEvilVrt KBqD0VlkrTDRR4sUcOIVmMeLFvRrzCQdy6C4Kcen3gWKquZz06FSXOOo16+GZs38tQSv ok2w==
- 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
Hi all,
maybe I am misunderstanding zsh's intentions here, but this behaviour
seems to be quite useless/counter-intuitive and potentially harmful:
richih@adamantium ~ % zsh -f
adamantium% PS1="%~ %# "
~ % mkdir testdir
~ % cd testdir
~/testdir % rmdir ~/testdir
~/testdir % cd .
. % ls
. % pwd
.
. % cd ..
. % pwd
.
. %
Wouldn't it be better if zsh threw an error as soon as the user tries to `cd .`?
Thanks,
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author