Description
When using the negate exclamation mark (`!) in the cmd, Task sometimes does not honor the exit code.
This behavior has been introduced in the 3.44.1 release and can be reproduced with the 3.46.0-nightly release.
The preconditions block is affected too.
In the example Taskfile, the first two commands should exit successfully but fail instead.
Version
task-3.46.0-nightly
Operating system
Linux
Experiments Enabled
No response
Example Taskfile
---
version: 3
tasks:
should-succeed:
cmds:
- |
! stat foo
should-succeed2:
cmds:
- |
! ls foo
does-succeed-as-expected:
cmd: |
! false
does-succeed-as-expected2:
cmds:
- |
! test -f foo
Description
When using the negate exclamation mark (`!) in the cmd, Task sometimes does not honor the exit code.
This behavior has been introduced in the 3.44.1 release and can be reproduced with the 3.46.0-nightly release.
The
preconditionsblock is affected too.In the example Taskfile, the first two commands should exit successfully but fail instead.
Version
task-3.46.0-nightly
Operating system
Linux
Experiments Enabled
No response
Example Taskfile