summaryrefslogtreecommitdiffstats
path: root/bitbake/doc
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2021-11-19 18:05:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-21 11:28:11 +0000
commitcdab3b7c31a330ebeef18c351b360ba474b0bdf5 (patch)
tree2550484de8450c7e752e4ca59be7c76101a38c65 /bitbake/doc
parent37dcb8b3726065509cb5e5e3505f7fc93c90e9a7 (diff)
downloadpoky-cdab3b7c31a330ebeef18c351b360ba474b0bdf5.tar.gz
bitbake: bitbake-user-manual: fix backslash issues
(Bitbake rev: ffd87a89393f25924f53dbc86dcf5a98c3a8d0ff) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/doc')
-rw-r--r--bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
index e912918aaf..d802a8d353 100644
--- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
+++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.rst
@@ -104,15 +104,15 @@ Line Joining
104 104
105Outside of :ref:`functions <bitbake-user-manual/bitbake-user-manual-metadata:functions>`, 105Outside of :ref:`functions <bitbake-user-manual/bitbake-user-manual-metadata:functions>`,
106BitBake joins any line ending in 106BitBake joins any line ending in
107a backslash character ("\") with the following line before parsing 107a backslash character ("\\") with the following line before parsing
108statements. The most common use for the "\" character is to split 108statements. The most common use for the "\\" character is to split
109variable assignments over multiple lines, as in the following example:: 109variable assignments over multiple lines, as in the following example::
110 110
111 FOO = "bar \ 111 FOO = "bar \
112 baz \ 112 baz \
113 qaz" 113 qaz"
114 114
115Both the "\" character and the newline 115Both the "\\" character and the newline
116character that follow it are removed when joining lines. Thus, no 116character that follow it are removed when joining lines. Thus, no
117newline characters end up in the value of ``FOO``. 117newline characters end up in the value of ``FOO``.
118 118
@@ -125,7 +125,7 @@ Consider this additional example where the two assignments both assign
125 125
126.. note:: 126.. note::
127 127
128 BitBake does not interpret escape sequences like "\n" in variable 128 BitBake does not interpret escape sequences like "\\n" in variable
129 values. For these to have an effect, the value must be passed to some 129 values. For these to have an effect, the value must be passed to some
130 utility that interprets escape sequences, such as 130 utility that interprets escape sequences, such as
131 ``printf`` or ``echo -n``. 131 ``printf`` or ``echo -n``.
@@ -159,7 +159,7 @@ behavior::
159 C = "qux" 159 C = "qux"
160 *At this point, ${A} equals "qux bar baz"* 160 *At this point, ${A} equals "qux bar baz"*
161 B = "norf" 161 B = "norf"
162 *At this point, ${A} equals "norf baz"\* 162 *At this point, ${A} equals "norf baz"*
163 163
164Contrast this behavior with the 164Contrast this behavior with the
165:ref:`bitbake-user-manual/bitbake-user-manual-metadata:immediate variable 165:ref:`bitbake-user-manual/bitbake-user-manual-metadata:immediate variable