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)
Sat, Nov 1, 12:20 AM
Unknown Object (File)
Oct 18 2025, 3:28 AM
Unknown Object (File)
Sep 22 2025, 6:29 AM
Unknown Object (File)
Sep 20 2025, 8:53 PM
Unknown Object (File)
Sep 20 2025, 2:45 PM
Unknown Object (File)
Sep 20 2025, 10:15 AM
Unknown Object (File)
Sep 6 2025, 4:27 AM
Unknown Object (File)
Aug 19 2025, 7:02 AM
Subscribers
None

Diff Detail

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

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

Values containing whitespace must be enclosed in quotes:
4497

s/because of/due to/

4498

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.