xref: /freebsd/bin/sh/tests/execution/fork1.0 (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1
2shname=${SH%% *}
3shname=${shname##*/}
4
5result=$(${SH} -c 'ps -p $$ -o comm=')
6test "$result" = "ps" || exit 1
7
8result=$(${SH} -c 'ps -p $$ -o comm=; :')
9test "$result" = "$shname" || exit 1
10