zsh-workers
 help / color / mirror / code / Atom feed
* BUG: cd '' doesn't produce an error
@ 2005-12-21  2:03 Ulrik Haugen
  2005-12-21 10:21 ` Peter Stephenson
  0 siblings, 1 reply; 11+ messages in thread
From: Ulrik Haugen @ 2005-12-21  2:03 UTC (permalink / raw)
  To: zsh-workers

Hello!

I recently discovered that zsh (versions 4.2.5 and 4.3.0-dev-1)
doesn't produce an error when i attempt to "cd ''" (in version 3.0.8 I
get the error i expected). Please let me know if you'd like me to test
any other versions.

Below is an example that demonstrates the problem, I was expecting an
error message and exit code from "cd ''" similar to what I get from
"cd flupp".

% mkdir /tmp/test
% cd /tmp/test
% pwd       
/tmp/test
% cd flupp
cd: no such file or directory: flupp
% echo $?
1
% pwd       
/tmp/test
% cd ''
% echo $?
0
% pwd
/tmp/test


Is this the bug I see or is it intended to be this way?

Some other shells I've tested:
bash 3.00.16(1)-release:   no error from cd ''
/bin/sh on SunOS 5.10:     expected behaviour
tcsh 6.14.00:              expected behaviour


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

end of thread, other threads:[~2006-01-05 12:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21  2:03 BUG: cd '' doesn't produce an error Ulrik Haugen
2005-12-21 10:21 ` Peter Stephenson
2005-12-30 12:52   ` Ulrik Haugen
2005-12-30 16:28     ` Wayne Davison
2006-01-04 17:32       ` Wayne Davison
2006-01-04 19:48       ` Ulrik Haugen
2006-01-04 11:41     ` Peter Stephenson
2006-01-04 13:06       ` Peter Stephenson
2006-01-04 17:48       ` Peter Stephenson
2006-01-04 22:30       ` Ulrik Haugen
2006-01-05 12:29         ` Peter Stephenson

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).