Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6625

Puppet allows bare words beginning with underscore when documentation says it is not allowed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.6.0
    • Fix Version/s: None
    • Component/s: Docs, Language
    • Labels:
      None
    • Environment:

      Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux, with Puppet 4.6.0

    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2016-09-07
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The language specification and puppet documentation were too restrictive in the description of bare words as they allow underscore characters as well as embedded hyphens. For example {{this-is-allowed}} and {{_so_is_this_}}.

      Description

      The language specification for Puppet 4.6 defines that bare word strings must begin with an lowercase character, but the following command works:

      puppet apply -e 'notice(_a)'

      works and results in "_a" to be printed.

      To be more precise, bare words beginning with an underscore do not result in a parsing error, and are fully evaluated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorie Jorie Tappa
                Reporter:
                mgla Maik Glatki
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support