From c0a13d21cf1747f1a6c6a2fe517acf8124d336b8 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 20 Mar 2014 04:35:43 -0600 Subject: bitbake: user-manual-metadata.xml: Sections to handle variable setting added. Fixes [YOCTO #5507] I provided further explanation in the "Basic Variable Setting" section to note that trailing and leading blanks are not stripped from a value when set (e.g. VARIABLE = " value"). I added a new section "Null and Blank Setting" explaning that setting a variable to "" and " " are two different things. (Bitbake rev: 96d0b38577476a3576487f1fa9a4b6c9dff5d3ed) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- bitbake/doc/user-manual/user-manual-metadata.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'bitbake/doc/user-manual') diff --git a/bitbake/doc/user-manual/user-manual-metadata.xml b/bitbake/doc/user-manual/user-manual-metadata.xml index f7682c0fed..9cd1a9d922 100644 --- a/bitbake/doc/user-manual/user-manual-metadata.xml +++ b/bitbake/doc/user-manual/user-manual-metadata.xml @@ -30,6 +30,26 @@ VARIABLE = "value" + As expected, if you include leading or trailing spaces as part of + an assignment, the spaces are retained: + + VARIABLE = " value" + VARIABLE = "value " + + + + +
+ Null and Blank Variable Setting + + + Setting VARIABLE to "" sets it to null, + while setting the variable to " " sets it to a blank space + (i.e. these are not the same values). + + VARIABLE = "" + VARIABLE = " " +
-- cgit v1.2.3-54-g00ecf