zsh-users
 help / color / mirror / code / Atom feed
* `cd .` in non-existent directory leads into weird corner case
@ 2012-03-27  0:56 Richard Hartmann
  2012-03-27  5:13 ` Daniel Shahaf
  2012-03-27 14:34 ` Bart Schaefer
  0 siblings, 2 replies; 27+ messages in thread
From: Richard Hartmann @ 2012-03-27  0:56 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2012-04-15 18:08 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-27  0:56 `cd .` in non-existent directory leads into weird corner case Richard Hartmann
2012-03-27  5:13 ` Daniel Shahaf
2012-03-27 14:34 ` Bart Schaefer
2012-03-27 15:25   ` Richard Hartmann
2012-04-02  9:52   ` Richard Hartmann
2012-04-02 10:12     ` Peter Stephenson
2012-04-02 10:56       ` Mikael Magnusson
2012-04-02 11:00         ` Peter Stephenson
2012-04-02 11:10           ` Mikael Magnusson
2012-04-02 11:39             ` Peter Stephenson
2012-04-03  9:51             ` Richard Hartmann
2012-04-03  9:57             ` Peter Stephenson
2012-04-03 10:16               ` Mikael Magnusson
2012-04-03 11:11                 ` Richard Hartmann
2012-04-03 14:06                 ` Bart Schaefer
2012-04-02 10:15     ` Mikael Magnusson
2012-04-02 10:33       ` Peter Stephenson
2012-04-02 10:46         ` Mikael Magnusson
2012-04-02 11:07       ` Vincent Lefevre
2012-04-02 12:59       ` Richard Hartmann
2012-04-03  4:04         ` Jun T.
2012-04-03 14:43           ` Vincent Lefevre
2012-04-04 17:03             ` Jun T.
2012-04-05 14:20               ` Vincent Lefevre
2012-04-05 16:17                 ` Jun T.
2012-04-15  1:17                   ` Vincent Lefevre
2012-04-15 18:07                     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).