1 0
2 0
3 0
4 0
5 0
6 0
f4
7 0
f3
8 0
f2
9 0
f1
10 0
ok
1/f1 2/f2 3/f3 4/f4
0
1/f1 2/f2 3/f3 4/f4
===== 1 =====
4
3
2
1
dirstack.y.tmp
+0	-4	4
+1	-3	3
+2	-2	2
+3	-1	1
+4	-0	dirstack.y.tmp
===== 2 =====
3
4
2
1
dirstack.y.tmp
4
3
2
1
dirstack.y.tmp
===== 3 =====
3
1
4
2
dirstack.y.tmp
===== 4 =====
3
2
dirstack.y.tmp
===== 5 =====
3
2
dirstack.y.tmp
===== 6 =====
4
1
3
2
dirstack.y.tmp
===== 7 =====
3
4
1
2
dirstack.y.tmp
===== 8 =====
1
2
2
3
4
2
dirstack.y.tmp
=====
+0	-6	1
+6	-0	dirstack.y.tmp
2
4
===== 9 =====
empty popd 1
dirstack.y.tmp
pushd hyphen 1
===== 10 =====
pushd dirstack unset 1
popd dirstack unset 1
dirs dirstack unset 0
dirs -c dirstack unset 1
pushd dirstack readonly 1
popd dirstack readonly 1
dirs dirstack readonly 0
dirs -c dirstack readonly 1
pushd no-such-option 2
pushd too-many-operands 2
pushd no-such-dir 1
pushd index out of range 1
pushd output error 0
popd no-such-option 2
popd too-many-operands 2
popd index out of range 1
popd output error 0
popd dirstack empty 1
dirs no-such-option 2
dirs index out of range 1
dirs output error 1
