dsherret / dax

Cross-platform shell tools for Deno and Node.js inspired by zx.
MIT License
969 stars 33 forks source link

fix: surface command exit code on kill #170

Closed dsherret closed 11 months ago

dsherret commented 11 months ago

It shouldn't be surfacing the abort exit code, unless a command attempts to run after failure. This will allow people to return and handle different exit codes based on what signal is sent to the command.

I think on timeout it should always surface the abort exit code on failure though and not the command's exit code in order for people to easily be able to test for a timeout having occurred.