Is there a shell equivalent (in either bash or zsh) of Perl's die
function?
I want to set the exit code and print a message in a single line. I know I can make my own simple function but I'm kind of hoping for a built in.
Nope, you need both
echo
and exit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With