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
These are the exit codes defined in the bash source code:
/* Values that can be returned by execute_command (). */#defineEXECUTION_FAILURE 1
#defineEXECUTION_SUCCESS 0
/* Usage messages by builtins result in a return status of 2. */#defineEX_BADUSAGE 2
#defineEX_MISCERROR 2
/* Special exit statuses used by the shell, internally and externally. */#defineEX_RETRYFAIL 124
#defineEX_WEXPCOMSUB 125
#defineEX_BINARY_FILE 126
#defineEX_NOEXEC 126
#defineEX_NOINPUT 126
#defineEX_NOTFOUND 127
#defineEX_SHERRBASE 256 /* all special error values are > this. */#defineEX_BADSYNTAX 257 /* shell syntax error */#defineEX_USAGE 258 /* syntax error in usage */#defineEX_REDIRFAIL 259 /* redirection failed */#defineEX_BADASSIGN 260 /* variable assignment error */#defineEX_EXPFAIL 261 /* word expansion failed */#defineEX_DISKFALLBACK 262 /* fall back to disk command from builtin */
The same way as the
heredoc_status
enum.This can replace the
BAD_SUBSTITUTION
exit code macro.Originally posted by @itislu in #153 (comment)
These are the exit codes defined in the bash source code:
Originally posted by @itislu in #153 (comment)
The text was updated successfully, but these errors were encountered: