summaryrefslogtreecommitdiff
path: root/tests/dstack2.tests
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2018-05-22 16:51:07 -0400
committerChet Ramey <chet.ramey@case.edu>2018-05-22 16:51:07 -0400
commit9a51695bed07d37086c352372ac69d0a30039a6b (patch)
tree4d0f57cba0dd1ec7a75aae56e18cfe9997d0b7a7 /tests/dstack2.tests
parent7de27456f6494f5f9c11ea1c19024d0024f31112 (diff)
downloadbash-5.0-alpha.tar.gz
bash-5.0-alpha releasebash-5.0-alpha
Diffstat (limited to 'tests/dstack2.tests')
-rw-r--r--tests/dstack2.tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dstack2.tests b/tests/dstack2.tests
index d902bffb..3aa105b3 100644
--- a/tests/dstack2.tests
+++ b/tests/dstack2.tests
@@ -1,3 +1,4 @@
+wdir=$PWD
cd /
echo expect '~1'
@@ -31,3 +32,5 @@ dirs -v -1
echo these lines should be the same
dirs -0
echo ~-0 ${DIRSTACK[NDIRS]}
+
+cd "$wdir"