Issue #16618 has been updated by eric sorenson. Status changed from Unreviewed to Duplicate
Dup of one of the issues described in #10506 ---------------------------------------- Bug #16618: puppet allows numeric variable names that can not be used https://projects.puppetlabs.com/issues/16618#change-73037 Author: R.I. Pienaar Status: Duplicate Priority: Normal Assignee: Category: Target version: Affected Puppet version: 3.0.0-rc8 Keywords: Branch: The code: <pre> $foo = "bar" if $foo =~ /(bar)/ { notice($1) } $2 = "foo" notice($2) </pre> Produces: <pre> notice: Scope(Class[main]): bar notice: Scope(Class[main]): </pre> This is obviously because $1 $2 etc are special regex match variables. So I think the 2nd case of attempting to assign a value to such a variable should be a compile error. -- 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.
