Add a test for r199631.

This commit is contained in:
Stefan Farfeleder 2009-11-21 14:54:35 +00:00
parent 1c645e0f5b
commit 80d5dd5fdb

View File

@ -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}