Issue #19641 has been updated by Charlie Sharpsteen.

Status changed from Unreviewed to Rejected

Since you are using a double quoted string, backreferences such as `\0` need an 
additional backslash to be properly escaped: `"$name:\\0"`. This raises the 
same warning on 2.7.20 and 3.1.0.
----------------------------------------
Bug #19641: regsubst() no longer works
https://projects.puppetlabs.com/issues/19641#change-86897

Author: James Patterson
Status: Rejected
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.


Reply via email to