13 ms·
/bin/true is backwards then since 0 usually means false > Zero is used to represent false, and One is used to represent true. For interpretation, Zero is inter
by cowturds 5y ago
/bin/true is backwards then since 0 usually means false
> Zero is used to represent false, and One is used to represent true. For interpretation, Zero is interpreted as false and anything non-zero is interpreted as true.
- anyfoo 5y agoNot in this context. In POSIX exit codes, 0 means “no error”, i.e. success. && and || in the shell even work like that.
- bobbylarrybobby 5y agoShell commands use an exit status of 0 to indicate success, and any other number indicates failure