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
Built-in Core Utilities fails catastrophic with no way to catch the error #2699
When executing statement like cat doesnotexist || echo "test" on linux, it will correctly catch the cat command's error state and execute the next command: echo "test".
cat: can't open 'doesnotexist': No such file or directory
test
When using the built-in utilities, it will fatally exit out of the statement
task: [example] cat doesnotexist || echo "non-catastrophic"
task: Failed to run task "example": coreutils: open [....]/doesnotexist: The system cannot find the file specified.
It exits out of the statement in such a way that not even ignore_error can handle it correctly.
The example Taskfile output on Windows:
Note that ignore_error did not work and the || statement did not execute.
task: [example] false
task: [example] false || echo "non-catastrophic"
non-catastrophic
task: [example] base64 doesnotexist || echo "non-catastrophic"
task: Failed to run task "example": coreutils: open C:\[....]\doesnotexist: The system cannot find the file specified.
The example Taskfile on Linux:
Note all statement act normally
task: [example] false
task: [example] false || echo "non-catastrophic"
non-catastrophic
task: [example] base64 doesnotexist || echo "non-catastrophic"
base64: doesnotexist: No such file or directory
non-catastrophic
task: [example] cat doesnotexist || echo "non-catastrophic"
cat: can't open 'doesnotexist': No such file or directory
non-catastrophic
Using TASK_CORE_UTILS=1 go-task example on linux
Note that ignore_error did not work and the || statement did not execute when using the built-in utilities.
task: [example] false
task: [example] false || echo "non-catastrophic"
non-catastrophic
task: [example] base64 doesnotexist || echo "non-catastrophic"
task: Failed to run task "example": open /[....]/doesnotexist: no such file or directory
This is a duplicate, or related to, #2466. You might like to try the related PR (and offer feedback there) however I think the problem will be fixed with a more refined integration to coreutils.
My apologies, my key word search did not find that issue, I'll search harder next time.
It looks like it'll be fixed in a new release, I'll test it then and open a new issue if it still can't run || statements.
Activity
trulede commentedon Feb 20, 2026
This is a duplicate, or related to, #2466. You might like to try the related PR (and offer feedback there) however I think the problem will be fixed with a more refined integration to coreutils.
ignore_errornot working on new built-incpcommand #2466WesselAtWork commentedon Feb 23, 2026
My apologies, my key word search did not find that issue, I'll search harder next time.
It looks like it'll be fixed in a new release, I'll test it then and open a new issue if it still can't run
||statements.