Issue #19641 has been reported by James Patterson.
----------------------------------------
Bug #19641: regsubst() no longer works
https://projects.puppetlabs.com/issues/19641
Author: James Patterson
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
This is a regression against pre-3.x
This used to work:
define blah($text) {
# When given an array looking like 'key1': text => [ 'one', 'two' ];
# produce an array [ 'key1:one', 'key1:two' ]
$array = regsubst($text, '^(.+)$', "$name:\0")
}
In 3.1 and 3.0 it doesn't work. The error is:
Unrecognised escape sequence '\0' in file...
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.