Page MenuHomeFreeBSD

Add a bit about spaces in opt_VARS values.
ClosedPublic

Authored by mat on Feb 25 2016, 8:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 15, 9:46 AM
Unknown Object (File)
Mon, May 11, 9:16 PM
Unknown Object (File)
Wed, May 6, 10:49 PM
Unknown Object (File)
Wed, May 6, 8:38 AM
Unknown Object (File)
Wed, May 6, 7:28 AM
Unknown Object (File)
Sat, May 2, 8:33 PM
Unknown Object (File)
Sat, May 2, 5:21 PM
Unknown Object (File)
Thu, Apr 30, 8:04 PM
Subscribers
None

Diff Detail

Repository
rD FreeBSD doc repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mat retitled this revision from to Add a bit about spaces in opt_VARS values..
mat updated this object.
mat edited the test plan for this revision. (Show Details)
mat added a reviewer: wblock.
en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
4493 ↗(On Diff #13740)

To avoid the if/pause/then, how about:

Values containing whitespace must be enclosed in quotes:
4497 ↗(On Diff #13740)

s/because of/due to/

4498 ↗(On Diff #13740)

How about:

expansion deals with whitespace.  When
<literal>OPT_VARS= foo=bar baz</literal> is expanded,
the variable ends up containing two strings,
<literal>foo=bar</literal> and <literal>baz</literal>.
But the submitter probably intended there to be only one string,
<literal>foo=bar baz</literal>.  Quoting the value prevents
whitespace from being used as a delimiter.</para>
This revision was automatically updated to reflect the committed changes.
mat marked 3 inline comments as done.