HomePhorge

(PUP-4462) Fix problem with heredoc interpolation turning on escapes
e0085ff42928Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-4462) Fix problem with heredoc interpolation turning on escapes

Before this, heredoc with interpolation would also turn on escapes. This
means input like \$name would not interpolate, and \\ would be required
to get a single \. It should be required to be explici about allowing
escapes by using /$ (to be allowed to escape interpolation).

The prolem was caused by the pattern used to find the start of an
interpolation. This pattern included the escapes that would make the
pattern skip the interpolation start - it would simply scan past the
interpolation start if escaped.

The solution was to create a new pattern for finding interpolation
starts when a $ is not one of the wanted escapes.

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPUe0085ff42928: (PUP-4462) Fix problem with heredoc interpolation turning on escapes (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).Apr 25 2015, 3:17 AM