Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2011 13:22:18 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218850 - head/tools/regression/bin/sh/execution
Message-ID:  <201102191322.p1JDMIT9097388@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sat Feb 19 13:22:18 2011
New Revision: 218850
URL: http://svn.freebsd.org/changeset/base/218850

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

Modified:
  head/tools/regression/bin/sh/execution/fork1.0

Modified: head/tools/regression/bin/sh/execution/fork1.0
==============================================================================
--- head/tools/regression/bin/sh/execution/fork1.0	Sat Feb 19 11:47:48 2011	(r218849)
+++ head/tools/regression/bin/sh/execution/fork1.0	Sat Feb 19 13:22:18 2011	(r218850)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102191322.p1JDMIT9097388>