svn commit: r239782 - stable/9/usr.sbin/bsdinstall
Devin Teske
dteske at FreeBSD.org
Tue Aug 28 15:45:37 UTC 2012
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"
More information about the svn-src-stable-9
mailing list