]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/execution/fork1.0
2eeac79ae8c3fced2e343d663d9b2e0ee5bc94c7
[apple/shell_cmds.git] / sh / tests / execution / fork1.0
1 # $FreeBSD$
2
3 shname=${SH%% *}
4 shname=${shname##*/}
5
6 result=$(${SH} -c 'ps -p $$ -o comm=')
7 test "$result" = "ps" || exit 1
8
9 result=$(${SH} -c 'ps -p $$ -o comm=; :')
10 test "$result" = "$shname" || exit 1