1 # $FreeBSD: head/bin/sh/tests/expansion/ifs2.0 211341 2010-08-15 17:14:05Z jilles $
6 while [ "$i" -le 127 ]; do
7 # A different byte still in the range 1..127.
9 # Add a character to work around command substitution's removal of
10 # final newlines, then remove it again.
11 c=$(printf \\"$(printf %o@ "$i")")
13 c2=$(printf \\"$(printf %o@ "$i2")")
17 if [ "$#" -ne 3 ] || [ "$1" != "$c2" ] || [ "$2" != "$c2" ] ||
18 [ "$3" != "$c2" ]; then
19 echo "Bad results for separator $i (word $i2)" >&2
24 exit $((failures > 0))