xref: /freebsd/bin/sh/tests/expansion/pathname6.0 (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
1
2unset LC_ALL
3LC_COLLATE=en_US.US-ASCII
4export LC_COLLATE
5
6failures=0
7
8check() {
9	testcase=$1
10	expect=$2
11	eval "set -- $testcase"
12	actual="$*"
13	if [ "$actual" != "$expect" ]; then
14		failures=$((failures+1))
15		printf '%s\n' "For $testcase, expected $expect actual $actual"
16	fi
17}
18
19set -e
20T=$(mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXX)
21trap 'rm -rf $T' 0
22cd -P $T
23
24touch A B a b
25
26check '*' 'a A b B'
27
28exit $((failures != 0))
29