4 ms·
Something to keep in mind when writing cross-platform command line tools: on most Unix-like platforms, only the eight least-significant bits are considered, whi
by gardaani 5y ago
Something to keep in mind when writing cross-platform command line tools: on most Unix-like platforms, only the eight least-significant bits are considered, while on Windows all bits are considered. [1]
So, exit(256) means exit code 0 on Linux and Mac, but 256 on Windows.
[1] https://doc.rust-lang.org/std/process/fn.exit.html#platform-specific-behavior https://doc.rust-lang.org/std/process/fn.exit.html#platform-...