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