]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake-user-manual: Added information for using single quotes
authorScott Rifenbark <srifenbark@gmail.com>
Wed, 21 Sep 2016 21:03:10 +0000 (14:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Sep 2016 21:19:48 +0000 (22:19 +0100)
Fixes [YOCTO #10293]

In the section about setting variables, I added a paragraph that
explains the use of single quotes when setting a variable.  The
case covers when you must have the double quote charater as part
of your variable's value.

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
doc/bitbake-user-manual/bitbake-user-manual-metadata.xml

index dcb1f1e3cf3098e13a57180e9b593f762c6b75cb..ada4e22d66713d0ac0c58e5aecefbe01b8755bc4 100644 (file)
      VARIABLE = " "
                 </literallayout>
             </para>
+
+            <para>
+                You can use single quotes instead of double quotes
+                when setting a variable's value.
+                Doing so allows you to use values that contain the double
+                character:
+                <literallayout class='monospaced'>
+     VARIABLE = 'I have a " in my value'
+                </literallayout>
+                <note>
+                    Unlike in Bourne shells, single quotes work identically
+                    to double quotes in all other ways.
+                    They do not suppress variable expansions.
+                </note>
+            </para>
         </section>
 
         <section id='variable-expansion'>