From 28a809886d3df86ffb07c302ff717b621caf22a2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 20 Mar 2009 22:52:56 +0000 Subject: 26763: fix problem on failed cd -s to relative path --- Test/B01cd.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test') diff --git a/Test/B01cd.ztst b/Test/B01cd.ztst index 1995971cf..b5ba4d03b 100644 --- a/Test/B01cd.ztst +++ b/Test/B01cd.ztst @@ -109,6 +109,14 @@ F:something is broken. But you already knew that. >$mydir/cdtst.tmp/real >$mydir/cdtst.tmp/real + ln -s nonexistent link_to_nonexistent + pwd1=$(pwd -P) + cd -s link_to_nonexistent + pwd2=$(pwd -P) + [[ $pwd1 = $pwd2 ]] || print "Ooops, changed to directory '$pwd2'" +0: +?(eval):cd:3: not a directory: link_to_nonexistent + %clean # This optional section cleans up after the test, if necessary, # e.g. killing processes etc. This is in addition to the removal of *.tmp -- cgit 1.4.1