Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169602339
D5447.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5447.diff
View Options
Index: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
===================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
+++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
@@ -4487,6 +4487,22 @@
.else
BIN3_BUILD= no
.endif</programlisting>
+
+ <tip>
+ <para>Values containing whitespace must be enclosed in
+ quotes:</para>
+
+ <programlisting>OPT_VARS= foo="bar baz"</programlisting>
+
+ <para>This is due to the way &man.make.1; variable 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>
+ </tip>
</sect3>
<sect3 xml:id="options-dependencies">
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 3, 1:09 AM (10 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38037789
Default Alt Text
D5447.diff (1 KB)
Attached To
Mode
D5447: Add a bit about spaces in opt_VARS values.
Attached
Detach File
Event Timeline
Log In to Comment