xref: /freebsd/usr.bin/apply/tests/regress.01.sh (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
1#!/bin/sh
2
3SHELL=/bin/sh; export SHELL
4
5ARG_MAX=$(getconf ARG_MAX)
6ARG_MAX_HALF=$((ARG_MAX / 2))
7
8apply 'echo %1 %1 %1' $(jot $ARG_MAX_HALF 1 1 | tr -d '\n') 2>&1
9
10if [ $? -eq 0 ]; then
11	return 1
12else
13	return 0
14fi
15