Imported from ../bash-2.02.tar.gz.
[platform/upstream/bash.git] / tests / dstack.tests
similarity index 89%
rename from tests/dirstack.tests
rename to tests/dstack.tests
index e384615..6c4cef1 100644 (file)
@@ -1,4 +1,10 @@
+export LC_ALL=C
+export LANG=C
+
 dirs -c
+# error -- nonexistant directory
+pushd /tmp/xxx-notthere
+
 # errors -- empty stack
 pushd
 popd
@@ -7,6 +13,7 @@ popd
 pushd -m
 popd -m
 dirs -m
+dirs 7
 
 MYDIR=$PWD
 unalias cd 2>/dev/null
@@ -14,6 +21,7 @@ unalias cd 2>/dev/null
 unalias -a
 
 command cd -P /
+command pwd -P # better be `/'
 
 case "$OLDPWD" in
 $MYDIR)        echo ok ;;