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