Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/build.sh,v rcsdiff: /ftp/cvs/cvsroot/src/build.sh,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.198 retrieving revision 1.198.2.1 diff -u -p -r1.198 -r1.198.2.1 --- src/build.sh 2008/10/26 23:40:06 1.198 +++ src/build.sh 2009/01/09 02:04:43 1.198.2.1 @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.198 2008/10/26 23:40:06 apb Exp $ +# $NetBSD: build.sh,v 1.198.2.1 2009/01/09 02:04:43 snj Exp $ # # Copyright (c) 2001-2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -43,6 +43,7 @@ progname=${0##*/} toppid=$$ results=/dev/null +tab=' ' trap "exit 1" 1 2 3 15 bomb() @@ -113,7 +114,7 @@ set_HOST_SH() # specifying HOST_SH in the environment. # [ -z "${HOST_SH}" ] && HOST_SH="$( - (ps -p $$ -o comm | sed -ne '2s/[ \t]*$//p') 2>/dev/null )" + (ps -p $$ -o comm | sed -ne "2s/[ ${tab}]*\$//p") 2>/dev/null )" # If nothing above worked, use "sh". We will later find the # first directory in the PATH that has a "sh" program. @@ -1199,7 +1200,7 @@ createmakewrapper() eval cat <