svn commit: r199632 - head/tools/regression/bin/sh/builtins
Stefan Farfeleder
stefanf at FreeBSD.org
Sat Nov 21 14:54:36 UTC 2009
Author: stefanf
Date: Sat Nov 21 14:54:35 2009
New Revision: 199632
URL: http://svn.freebsd.org/changeset/base/199632
Log:
Add a test for r199631.
Added:
head/tools/regression/bin/sh/builtins/cd2.0 (contents, props changed)
Added: head/tools/regression/bin/sh/builtins/cd2.0
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/tools/regression/bin/sh/builtins/cd2.0 Sat Nov 21 14:54:35 2009 (r199632)
@@ -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}
More information about the svn-src-all
mailing list