sh: Make execution/fork1.0 work even if the basename of ${SH} is not "sh".
This commit is contained in:
parent
b30bfd4339
commit
3d9394a391
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user