>Number:         170759
>Category:       bin
>Synopsis:       bsdinstall(8) produces "unexpected operator" error when passed 
>multi-word first-argument containing whitespace
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 18 21:30:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Devin Teske
>Release:        FreeBSD 9.0-RELEASE i386
>Organization:
FIS Global, Inc.
>Environment:
FreeBSD scribe9.vicor.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 
07:15:25 UTC 2012     r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  
i386
>Description:
When executing bsdinstall(8) with a multi-word first-argument, you get an 
"unexpected operator" error.
>How-To-Repeat:
Execute: bsdinstall foo
Result: No error, as expected
Execute now: bsdinstall foo\ bar
Result: [: foo: unexpected operator
>Fix:
The problem is surely line 37 of bsdinstall(8) shown below:

if [ -z $VERB ]; then

Which should be instead:

if [ -z "$VERB" ]; then


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to