Bug 10293

Summary: Mention that single quotes can be used when assigning variables
Product: [Documentation] BitBake User Manual Reporter: ulfalizer
Component: bitbake-manualAssignee: Scott Rifenbark <srifenbark>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: sgw, srifenbark
Version: 2.2   
Target Milestone: 2.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: 22 Sept 2016: RESOLVED
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Done (doc changes complete)

Description ulfalizer 2016-09-16 23:38:34 UTC
Hello,

It's not mentioned that single quotes can be used as well as double quotes when
assigning values to variables. I suggest adding the following to the end of
'3.1.1. Basic Variable Setting':

  Instead of double quotes, single quotes can be used. This allows the value to
  contain double quotes:
  
    VARIABLE = 'I have a " in my value'
  
  Note {
  Unlike in Bourne shells, single quotes work identically to double quotes in all
  other ways. They do not suppress variable expansions.
  }


Cheers,
Ulf
Comment 2 ulfalizer 2016-09-22 04:16:20 UTC
"Double" should have been "double quote" in "doing so allows you to use values that contain the double character". Looks fine other than that.

Cheers,
Ulf
Comment 3 Scott Rifenbark 2016-09-22 23:08:33 UTC
Ulf, 

Sorry about that .. Fixed. 

http://www.yoctoproject.org/docs/2.2/bitbake-user-manual/bitbake-user-manual.html#basic-variable-setting.

I am going to set to RESOLVED and put the doc flag to "done."

Thanks, 
Scott