task icon indicating copy to clipboard operation
task copied to clipboard

Regression: character escaping ignored

Open NorbertHauriel opened this issue 9 months ago • 4 comments

Description

Running the same task in two different versions produce different outputs, breaking previously working tasks.

v3.41.0 outputs this txt file content: / v3.42.0 outputs this txt file content: //

Version

v3.42.0

Operating system

Linux

Experiments Enabled

No

Example Taskfile

tasks:
  default:
    cmds:
      - |
        cat <<EOF > ./test.txt
        \\
        EOF

NorbertHauriel avatar Mar 17 '25 18:03 NorbertHauriel

Looks like this was introduced in 8426f84b18dc08042d64ecb1104267abbb7442fa which bumped the versions of some dependencies.

Edit: Confirmed that downgrading mvdan.cc/sh to v3.10.0 fixes this issue.

@NorbertHauriel Could you please report this upstream and link the issue here so we can track it.

pd93 avatar Mar 17 '25 20:03 pd93

@NorbertHauriel Could you please report this upstream and link the issue here so we can track it.

https://github.com/mvdan/sh/issues/1138

NorbertHauriel avatar Mar 17 '25 22:03 NorbertHauriel

It looks like the upstream https://github.com/mvdan/sh/issues/1138 has been fixed.

wburningham avatar Jun 09 '25 17:06 wburningham

Yeah, but it’s not released yet. I’ll update mvdan/sh as soon as they publish a new version.

vmaerten avatar Jun 09 '25 20:06 vmaerten

FWIW this was released with v3.12.0 in July.

mvdan avatar Sep 20 '25 19:09 mvdan

Thanks @mvdan!

vmaerten avatar Sep 20 '25 19:09 vmaerten