Sync /bin/sh regression tests with FreeBSD.
[dragonfly.git] / tools / regression / bin / sh / execution / fork1.0
CommitLineData
4bfff613
PA
1# $FreeBSD: src/tools/regression/bin/sh/execution/fork1.0,v 1.3 2011/02/19 13:22:18 jilles Exp $
2
3shname=${SH%% *}
4shname=${shname##*/}
3df4d8b0
PA
5
6result=$(${SH} -c 'ps -p $$ -o comm=')
7test "$result" = "ps" || exit 1
8
9result=$(${SH} -c 'ps -p $$ -o comm=; :')
4bfff613 10test "$result" = "$shname" || exit 1