How do I exit Bun shell code with a non-zero error code? #9799
-
I don't know if this should be an issue, but what's the best way to do the equivalent of So in bash it would be something like: &2 echo "error: bad thing has happened"
exit 1 With Bun, I think it should be something like: import { $ } from "bun";
await $`echo "trying to exit with non-zero error code"`
await $`exit 1` But the output from the above is:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
@nektro added support for the @pierskarsenbarg please try again with bun v1.1 |
Beta Was this translation helpful? Give feedback.
@nektro added support for the
exit
command in bun v1.1@pierskarsenbarg please try again with bun v1.1