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

This commit is contained in:
Jilles Tjoelker 2011-02-19 13:22:18 +00:00
parent b30bfd4339
commit 3d9394a391

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