is_reserved

Function is_reserved 

Source
pub fn is_reserved(c: i32) -> bool
Expand description

Check if the given exit code is reserved and has a special meaning in a shells.

|———–|–––––––––––––––––––––––––––––|

Exit CodeMeaning
0Success
1Catchall for general errors
2Misuse of shell built-ins
64Usage Error
65Data Error
66No Input
67No User
68No Host
69Service Unavailable
70Software Error
71OS Error
72OS File Error
73Cannot Create
74IO Error
75Temporary Failure
76Protocol Error
77No Permission
78Config Error
126Command invoked cannot execute
127Command not found
128Invalid argument to exit
128–137Fatal error signal (kill -n where n is added to 128)
256+Exit status out of range
———––––––––––––––––––––––––––––––