Issue #4485 has been updated by Markus Roberts.

Status changed from Available In Testing Branch to Closed

commit:a23d80aebabf981a34fcca5c8bd2aa5f44ea832d Fixes #4485 -- single quoted 
strings should not treat \n as new line


----------------------------------------
Bug #4485: single quoted strings are interpreted
http://projects.puppetlabs.com/issues/4485

Author: Peter Meier
Status: Closed
Priority: Immediate
Assigned to: Markus Roberts
Category: 
Target version: 
Affected version: 2.6.1rc1
Keywords: 
Branch: MarkusQ:tickets/2.6.x/4485


In 0.25.5 the following manifest:

<pre>
$ cat foo.pp 
file{'/tmp/foo':
  content => 'line1\nline2',
}
</pre>
generates:
<pre>
$ cat /tmp/foo
line1\nline2$
</pre>

However in 2.6.1rc1++ (and also 2.6.1rc1 and probably also before) it generates:

<pre>
$ cat /tmp/foo
line1
line2
$
</pre>

This breaks every manifests that assumed that control characters (e.g. \n) can 
be written in single quotes to a file, so that they can be used in scripts and 
interpreted there as newlines.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to