Upstream commit:
    From: Herbert Xu <herbert@gondor.apana.org.au>
    Date: Fri, 9 Mar 2018 23:07:53 +0800
    parser: Fix single-quoted patterns in here-documents
    The script
            x=*
            cat <<- EOF
                    ${x#'*'}
            EOF
    prints * instead of nothing as it should.  The problem is that
    when we're in sqsyntax context in a here-document, we won't add
    CTLESC as we should.  This patch fixes it:
    Reported-by: Harald van Dijk <harald@gigawatt.nl>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			81 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			81 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
x='*'
 | 
						|
 | 
						|
cat <<- EOF
 | 
						|
	${x#'*'}
 | 
						|
EOF
 | 
						|
echo Ok1:$?
 | 
						|
 | 
						|
cat <<EOF
 | 
						|
${x#'*'}
 | 
						|
EOF
 | 
						|
echo Ok2:$?
 |