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