svn commit: r218850 - head/tools/regression/bin/sh/execution

Jilles Tjoelker jilles at FreeBSD.org
Sat Feb 19 13:22:18 UTC 2011


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


More information about the svn-src-head mailing list