sh: Make execution/fork1.0 work even if the basename of ${SH} is not "sh".

This commit is contained in:
jilles 2011-02-19 13:22:18 +00:00
parent ea4dbdacd2
commit 8ee6aec361

View File

@ -1,7 +1,10 @@
# $FreeBSD$
shname=${SH%% *}
shname=${shname##*/}
result=$(${SH} -c 'ps -p $$ -o comm=')
test "$result" = "ps" || exit 1
result=$(${SH} -c 'ps -p $$ -o comm=; :')
test "$result" = "sh" || exit 1
test "$result" = "$shname" || exit 1