]> git.saurik.com Git - apple/shell_cmds.git/blob - sh/tests/execution/fork1.0
shell_cmds-216.60.1.tar.gz
[apple/shell_cmds.git] / sh / tests / execution / fork1.0
1 # $FreeBSD: head/bin/sh/tests/execution/fork1.0 218850 2011-02-19 13:22:18Z jilles $
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