Issue #7022 has been updated by R.I. Pienaar.
<pre> $ puppet --trace test.pp /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:19:in `lex_error' /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:523:in `slurpstring' /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:224:in `convert' /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:403:in `munge_token' /usr/lib/ruby/site_ruby/1.8/puppet/parser/lexer.rb:460:in `scan' /usr/lib/ruby/1.8/racc/parser.rb:152:in `_racc_yyparse_c' /usr/lib/ruby/1.8/racc/parser.rb:152:in `__send__' /usr/lib/ruby/1.8/racc/parser.rb:152:in `yyparse' /usr/lib/ruby/site_ruby/1.8/puppet/parser/parser_support.rb:181:in `parse' /usr/lib/ruby/site_ruby/1.8/puppet/resource/type_collection.rb:168:in `perform_initial_import' /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:84:in `known_resource_types' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' /usr/lib/ruby/site_ruby/1.8/puppet/node/environment.rb:81:in `known_resource_types' /usr/lib/ruby/site_ruby/1.8/puppet/resource/type_collection_helper.rb:5:in `known_resource_types' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:434:in `initvars' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:192:in `initialize' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:18:in `new' /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:18:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:197:in `benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:188:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:115:in `main' /usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:35:in `run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:59:in `execute' /usr/bin/puppet:4 /usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:21:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:197:in `benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in `compile' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:188:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find' /usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:115:in `main' /usr/lib/ruby/site_ruby/1.8/puppet/application/apply.rb:35:in `run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:410:in `exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:304:in `run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:59:in `execute' /usr/bin/puppet:4 Could not parse for environment production: Unclosed quote after '' in '\') ' at /home/rip/test.pp:1 on node nephilim.ml.org </pre> ---------------------------------------- Bug #7022: Single quoted strings ending with \ not handed correctly https://projects.puppetlabs.com/issues/7022 Author: R.I. Pienaar Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: 0.25.4 Keywords: Branch: The following: <pre> notice('foo\nbar') </pre> Works as expected, however: <pre> notice('foo\') </pre> produces: <pre> Could not parse for environment production: Unclosed quote after '' in 'foo\') ' at /home/rip/test.pp:1 on node nephilim.ml.org </pre> Oldest puppet I can test on is 0.25.4 newest is 2.6.6, both have this bug -- 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.
