From: Rainer Jung Date: Wed, 1 Feb 2012 09:45:12 +0000 (+0000) Subject: Addition to r1237447: "for arg ; do" is not X-Git-Tag: 2.5.0-alpha~7519 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6464c346441a0ddab05a9575a5fb4cbd8634c03d;p=apache Addition to r1237447: "for arg ; do" is not sh standard. It seems its a shortcut for "for arg in "$@" ; do". Detected on Solaris with very restricted /bin/sh. Seems to work fine for arguments with embedded whitespace. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1239026 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build/install.sh b/build/install.sh index 21bc16c2d2..24488475d6 100755 --- a/build/install.sh +++ b/build/install.sh @@ -83,7 +83,7 @@ if test $# -eq 1 ; then echo "install.sh: no destination specified" exit 1 fi -for arg ; do +for arg in "$@" ; do dstarg="$arg" done diff --git a/build/instdso.sh b/build/instdso.sh index 405b304c9a..89aa32d010 100755 --- a/build/instdso.sh +++ b/build/instdso.sh @@ -33,7 +33,7 @@ fi SH_LIBTOOL=`echo $1 | sed -e 's/^SH_LIBTOOL=//'` shift # get last arg -for arg ; do +for arg in "$@" ; do DSOARCHIVES="$DSOARCHIVES $TARGETDIR" TARGETDIR=$arg done