in bash shell, echo $?
exit code of program run on cli. equivalent in fish shell? can't seem find in docs.
according website, https://fishshell.com/docs/current/faq.html#faq-exit-status, can use $status
variable:
how exit status of command?
use
$status
variable. replaces$?
variable used in other shells.
Comments
Post a Comment