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