<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10444</bug_id>
          
          <creation_ts>2016-10-17 13:07:20 +0000</creation_ts>
          <short_desc>Suggested documentation to explain line joining</short_desc>
          <delta_ts>2016-10-19 18:44:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>BitBake User Manual</product>
          <component>bitbake-manual</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>19 Oct 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67291</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-10-17 13:07:20 +0000</bug_when>
    <thetext>Hello Scott,

It&apos;s not documented how line joining works. This is mostly stuff that people
figure out quickly anyway, but it doesn&apos;t hurt to cover it in some detail.

Here&apos;s a suggested new section:

  3.1.2. Line joining
  
  Outside of
  [functions](https://www.yoctoproject.org/docs/2.2/bitbake-user-manual/bitbake-user-manual.html#functions)
  , BitBake joins any line ending in &quot;\&quot; with the following line before parsing
  statements. This is most commonly used to split variable assignments over
  multiple lines, as in the following example:
  
    FOO = &quot;bar \
           baz \
           qaz&quot;
  
  Both the backslash and the newline that follows it are removed when joining
  lines, so no newlines end up in the value of FOO. As another example, the two
  assignments below both assign &quot;barbaz&quot; to FOO:
  
    FOO = &quot;barbaz&quot;
  
    FOO = &quot;bar\
    baz&quot;
  
  Note {
  BitBake does not interpet escape sequences like &apos;\n&apos; in variable values. For
  these to have an effect, the value must be passed to some utility that
  interprets escape sequences, like &apos;printf&apos; or &apos;echo -n&apos;.
  }


Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67292</commentid>
    <comment_count>1</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-10-17 13:08:35 +0000</bug_when>
    <thetext>Typo: &quot;interpet&quot; should be &quot;interpret&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67372</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-10-19 16:11:40 +0000</bug_when>
    <thetext>Ulf, 

Here is the new section - http://www.yoctoproject.org/docs/2.2/bitbake-user-manual/bitbake-user-manual.html#line-joining.  I did a bit of word smithing. 

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67379</commentid>
    <comment_count>3</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-10-19 18:20:10 +0000</bug_when>
    <thetext>Thanks!

I&apos;d write &quot;newline&quot; rather than &quot;new line&quot; to make it clear that it&apos;s talking about a character rather than about an entire line. That seems to be the convention from looking at https://en.wikipedia.org/wiki/Newline as well. The rest looks fine.

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67381</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-10-19 18:44:32 +0000</bug_when>
    <thetext>Hi Ulf, 

Okay - good point.  I changed it.  See http://www.yoctoproject.org/docs/2.2/bitbake-user-manual/bitbake-user-manual.html#line-joining. 

I am going to set as RESOLVED and put the doc flag at &quot;done.&quot;

Thanks, 
Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>