You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
expand: regression in handling of escape sequences in heredocs #1138
I discovered a regression indirectly by using Task, which depends on mvdan/sh. See the below issue for the details: go-task/task#2129
To summarize, mvdan/sh v3.11.0 is found to ignore the character escaping in this example script, so double backslash is taken literally instead of being parsed as an escape sequence that would result in a single backslash. The older version v3.10.0 takes the double slashes as an escape sequence, as expected. Below is the script I indirectly executed using the Task CLI tool:
Activity
mvdan commentedon Mar 19, 2025
Thanks. This was part of another fix for go-task, #1070, but it wasn't quite right.
[-]Regression: character escaping ignored[/-][+]expand: regression in handling of escape sequences in heredocs[/+]expand: heredocs unescape \$, \\, and \`, just not \"
chore(deps): update module mvdan.cc/sh/v3/cmd/shfmt to v3.12.0 (hetzn…