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

Interpolation in interpolation nested string does not work.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.6.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      Language 2016-07-13, Language 2016-07-27
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      This fixes a lexer error that prevented nested string interpolation not to be properly interpolated.

      Description

      If you do this:

      notice "${"${foo}"}"
      

      There is a syntax error at the closing "

      If doing this (i.e. no interpolation in inner string):

      notice "${ "\$foo" }"
      

      Then it works.

      Interpolations are recursive - this looks like is a lexer bug.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  john.duarte John Duarte
                  Reporter:
                  henrik.lindberg Henrik Lindberg
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support