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