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