svn commit: r239500 - head/usr.sbin/bsdinstall
Devin Teske
dteske at FreeBSD.org
Tue Aug 21 13:46:47 UTC 2012
Author: dteske
Date: Tue Aug 21 13:46:46 2012
New Revision: 239500
URL: http://svn.freebsd.org/changeset/base/239500
Log:
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)
MFC after: 3 days
Modified:
head/usr.sbin/bsdinstall/bsdinstall
Modified: head/usr.sbin/bsdinstall/bsdinstall
==============================================================================
--- head/usr.sbin/bsdinstall/bsdinstall Tue Aug 21 13:33:48 2012 (r239499)
+++ head/usr.sbin/bsdinstall/bsdinstall Tue Aug 21 13:46:46 2012 (r239500)
@@ -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"
More information about the svn-src-head
mailing list