xref: /freebsd/usr.bin/apply/tests/regress.01.sh (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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