1213814Sobrien# $FreeBSD: releng/10.2/bin/sh/tests/expansion/trim4.0 213814 2010-10-13 23:29:09Z obrien $ 2213814Sobrien 3213814Sobrienv1=/homes/SOME_USER 4213814Sobrienv2= 5213814Sobrienv3=C123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 6213814Sobrien 7213814Sobrien# Trigger bug in VSTRIMRIGHT processing STADJUST() call in expand.c:subevalvar() 8213814Sobrienwhile [ ${#v2} -lt 2000 ]; do 9213814Sobrien v4="${v2} ${v1%/*} $v3" 10213814Sobrien if [ ${#v4} -ne $((${#v2} + ${#v3} + 8)) ]; then 11213814Sobrien echo bad: ${#v4} -ne $((${#v2} + ${#v3} + 8)) 12213814Sobrien fi 13213814Sobrien v2=x$v2 14213814Sobrien v3=y$v3 15213814Sobriendone 16