about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-03-20 22:52:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-03-20 22:52:56 +0000
commit28a809886d3df86ffb07c302ff717b621caf22a2 (patch)
treeea96b6c4b49327e567cdd521f929a517135839a1 /Test
parent249148d765d846f35d9e3805a89f978892c74208 (diff)
downloadzsh-28a809886d3df86ffb07c302ff717b621caf22a2.tar.gz
zsh-28a809886d3df86ffb07c302ff717b621caf22a2.tar.xz
zsh-28a809886d3df86ffb07c302ff717b621caf22a2.zip
26763: fix problem on failed cd -s to relative path
Diffstat (limited to 'Test')
-rw-r--r--Test/B01cd.ztst8
1 files changed, 8 insertions, 0 deletions
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