Jira (PUP-4462) Backslash before $ handled wrongly in heredoc with no escapes enabled

2015-04-24 Thread Nicholas Fagerlund (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicholas Fagerlund updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4462 
 
 
 
  Backslash before $ handled wrongly in heredoc with no escapes enabled  
 
 
 
 
 
 
 
 
 

Change By:
 
 Nicholas Fagerlund 
 
 
 
 
 
 
 
 
 
 Ran:{code} $thing = "hi there" notice(@("END INTERP"))This string should be able to interpolate variables, and all backslashes shouldbe interpreted as plain old literal backslashes.Variable standing apart: ${thing}Variable enjambed: hey${thing}Variable with single backslash enjambed: \${thing}Variable with double backslash enjambed: \\${thing}END INTERP{code}The single backslash before the $ causes a problem. I'm pretty sure this is against [the specification of heredocs|https://github.com/puppetlabs/puppet-specifications/blob/master/language/heredoc.md].Actual result:{code}Notice: Scope(Class[main]): This string should be able to interpolate variables, and all backslashes shouldbe interpreted as plain old literal backslashes.Variable standing apart: hi thereVariable enjambed: heyhi thereVariable with single backslash enjambed: \${thing}Variable with double backslash enjambed: \\hi there{code}Expected result: {code}Notice: Scope(Class[main]): This string should be able to interpolate variables, and all backslashes shouldbe interpreted as plain old literal backslashes.Variable standing apart: hi thereVariable enjambed: heyhi thereVariable with single backslash enjambed: \hi thereVariable with double backslash enjambed: \\hi there{code}3.7.5 and 4.0.0 behave identically.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscrib

Jira (PUP-4462) Backslash before $ handled wrongly in heredoc with no escapes enabled

2015-04-24 Thread Nicholas Fagerlund (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicholas Fagerlund created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4462 
 
 
 
  Backslash before $ handled wrongly in heredoc with no escapes enabled  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.0.0, PUP 3.7.5 
 
 
 

Assignee:
 
 Henrik Lindberg 
 
 
 

Components:
 

 Language 
 
 
 

Created:
 

 2015/04/24 3:40 PM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 Nicholas Fagerlund 
 
 
 
 
 
 
 
 
 
 
Ran: 
 
 
 
 
 
 
notice(@("END INTERP")) 
 
 
 
 
This string should be able to interpolate variables, and all backslashes should