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