ErrorCode

Enum containing common exit codes

Values

ValueMeaning
success0

Program completed correctly

general1

Catchall for general errors (misc errors, such as x / 0)

noperm2

Operation not permitted (missing keyword/command or permission problem)

noexec126

Command invoked cannot execute (permission problem or command is not executable)

notfound127

Command not found (possible problem with $PATH or typo)

noexit128

Invalid argument to exit (see ErrorCode.nocode)

fatal129

Fatal error (further execution is not possible or might harm the OS)

sigint130

Terminated with Ctrl-C

nocode255

Exit status out of range (maximal exit code)

Meta