From 8ee6aec3616d50ae9374166927bc1e65317f9672 Mon Sep 17 00:00:00 2001 From: jilles Date: Sat, 19 Feb 2011 13:22:18 +0000 Subject: [PATCH] sh: Make execution/fork1.0 work even if the basename of ${SH} is not "sh". --- tools/regression/bin/sh/execution/fork1.0 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/regression/bin/sh/execution/fork1.0 b/tools/regression/bin/sh/execution/fork1.0 index 225a82593231..2eeac79ae8c3 100644 --- a/tools/regression/bin/sh/execution/fork1.0 +++ b/tools/regression/bin/sh/execution/fork1.0 @@ -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