]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/parameters/positional5.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / parameters / positional5.0
1 # $FreeBSD: head/bin/sh/tests/parameters/positional5.0 268576 2014-07-12 21:54:11Z jilles $
2
3 i=1
4 r=0
5 while [ $i -lt $((0x100000000)) ]; do
6 t=
7 eval t=\${$i-x}
8 case $t in
9 x) ;;
10 *) echo "Problem with \${$i}" >&2; r=1 ;;
11 esac
12 i=$((i + 0x10000000))
13 done
14 exit $r