1 # $FreeBSD: head/bin/sh/tests/expansion/trim4.0 213814 2010-10-13 23:29:09Z obrien $
5 v3=C123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
7 # Trigger bug in VSTRIMRIGHT processing STADJUST() call in expand.c:subevalvar()
8 while [ ${#v2} -lt 2000 ]; do
9 v4="${v2} ${v1%/*} $v3"
10 if [ ${#v4} -ne $((${#v2} + ${#v3} + 8)) ]; then
11 echo bad: ${#v4} -ne $((${#v2} + ${#v3} + 8))