Issue #1900 has been updated by Jesse Wolfe. File 0001-Bug-1900-Parsing-of-quoted-in-stdin.patch added
Subject: [PATCH/puppet 1/1] Bug #1900 Parsing of quoted $ in stdin When code comes in via STDIN or --code , Puppet::Util::Settings interpolates $values in the code, which is probably never the intended behavior. This is the least destructive fix I could think of: have Puppet::Parser::Interpreter ask for the uninterpolated value. More general fixes could be to: a) Add an escape character to Settings's interpolator, and escape STDIN b) Add a mechanism to Settings to mark some values as uninterpolated ---------------------------------------- Bug #1900: Parsing of quoted $ in stdin http://projects.reductivelabs.com/issues/1900 Author: Alban Peignier Status: Accepted Priority: Normal Assigned to: Category: language Target version: Affected version: 0.24.7 Keywords: Branch: I found a difference between pipe and file parsing : A simple file with a content : $ cat withdollar.pp file { "/tmp/withdoller.txt": content => 'something like echo $1' } When puppet parses the file : $ puppet withdollar.pp notice: //File[/tmp/withdoller.txt]/content: created file with contents {md5}43f1e562200b79e68ebaf15cd956eaa3 When puppet parses stdin : $ cat withdollar.pp | puppet Could not parse for environment production: Could not find value for $1 -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
