positional1.0 revision 222158
133965Sjdp# $FreeBSD: head/tools/regression/bin/sh/parameters/positional1.0 222158 2011-05-21 14:52:26Z jilles $ 233965Sjdp 333965Sjdpset -- a b c d e f g h i j 433965Sjdp[ "$1" = a ] || echo "error at line $LINENO" 533965Sjdp[ "${1}" = a ] || echo "error at line $LINENO" 633965Sjdp[ "${1-foo}" = a ] || echo "error at line $LINENO" 733965Sjdp[ "${1+foo}" = foo ] || echo "error at line $LINENO" 833965Sjdp[ "$1+foo" = a+foo ] || echo "error at line $LINENO" 933965Sjdp[ "$10" = a0 ] || echo "error at line $LINENO" 1033965Sjdp[ "$100" = a00 ] || echo "error at line $LINENO" 1133965Sjdp[ "${10}" = j ] || echo "error at line $LINENO" 1233965Sjdp[ "${10-foo}" = j ] || echo "error at line $LINENO" 1333965Sjdp[ "${100-foo}" = foo ] || echo "error at line $LINENO" 1433965Sjdp