xref: /freebsd/bin/sh/tests/execution/fork1.0 (revision a687910fc4352117413b8e0275383e4c687d4c4c)
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