diff options
author | stefanf <stefanf@FreeBSD.org> | 2009-11-21 14:54:35 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2009-11-21 14:54:35 +0000 |
commit | e3acc4fb3576529ef4735fe244ab638a98888963 (patch) | |
tree | 261a64f3b22b732d07e46bdc177d3ef811de2d8a | |
parent | 611f554046960f02aad56a185bf34a2d7c8b7d27 (diff) | |
download | FreeBSD-src-e3acc4fb3576529ef4735fe244ab638a98888963.zip FreeBSD-src-e3acc4fb3576529ef4735fe244ab638a98888963.tar.gz |
Add a test for r199631.
-rw-r--r-- | tools/regression/bin/sh/builtins/cd2.0 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/cd2.0 b/tools/regression/bin/sh/builtins/cd2.0 new file mode 100644 index 0000000..eb8caf5 --- /dev/null +++ b/tools/regression/bin/sh/builtins/cd2.0 @@ -0,0 +1,15 @@ +# $FreeBSD$ +set -e + +T=$(mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXX) +cd $T +D=$T +for i in 0 1 2 3 4 5 6 7 8 9; do + for j in 0 1 2 3 4 5 6 7 8 9; do + mkdir veryverylongdirectoryname + cd veryverylongdirectoryname + D=$D/veryverylongdirectoryname + done +done +[ $(pwd | wc -c) -eq $((${#D} + 1)) ] # +\n +rm -rf ${T} |