opnsense-src/tools/regression/bin/sh/execution/fork1.0

10 lines
203 B
Text

# $FreeBSD$
shname=${SH%% *}
shname=${shname##*/}
result=$(${SH} -c 'ps -p $$ -o comm=')
test "$result" = "ps" || exit 1
result=$(${SH} -c 'ps -p $$ -o comm=; :')
test "$result" = "$shname" || exit 1