Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2012 15:45:37 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239782 - stable/9/usr.sbin/bsdinstall
Message-ID:  <201208281545.q7SFjbYh090068@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Tue Aug 28 15:45:37 2012
New Revision: 239782
URL: http://svn.freebsd.org/changeset/base/239782

Log:
  MFC r239500:
  Fix "unexpected operator" error when passed multi-word first-argument
  containing whitespace. Also make other changes to support multi-word
  arguments.
  
  PR:		bin/170759
  Submitted by:	dteske
  Reviewed by:	emaste (mentor)
  Approved by:	emaste (mentor)

Modified:
  stable/9/usr.sbin/bsdinstall/bsdinstall

Modified: stable/9/usr.sbin/bsdinstall/bsdinstall
==============================================================================
--- stable/9/usr.sbin/bsdinstall/bsdinstall	Tue Aug 28 14:20:41 2012	(r239781)
+++ stable/9/usr.sbin/bsdinstall/bsdinstall	Tue Aug 28 15:45:37 2012	(r239782)
@@ -34,11 +34,10 @@
 
 VERB=$1; shift
 
-if [ -z $VERB ]; then
+if [ -z "$VERB" ]; then
 	VERB=auto
 fi
 
 test -d "$BSDINSTALL_TMPETC" || mkdir "$BSDINSTALL_TMPETC"
-echo Running installation step: $VERB $@ >> "$BSDINSTALL_LOG"
-exec /usr/libexec/bsdinstall/$VERB $@ 2>>"$BSDINSTALL_LOG"
-
+echo "Running installation step: $VERB $@" >> "$BSDINSTALL_LOG"
+exec "/usr/libexec/bsdinstall/$VERB" "$@" 2>>"$BSDINSTALL_LOG"



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