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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"