3 ms·
If you modify your PS1 to include $? It makes writing shell scripts that rely on exit codes a lot easier. It should be the default in my opinion. Build scripts
by TheAdamist 4y ago
If you modify your PS1 to include $? It makes writing shell scripts that rely on exit codes a lot easier. It should be the default in my opinion.
Build scripts that fail and return 0 are my nemesis.
- yjftsjthsd-h 4y ago> Build scripts that fail and return 0 are my nemesis. I was also once party to an argument caused by a developer who thought that non-zero exit codes were an acceptable way to communicate success states. I suspect that he may have been trying to communicate different success conditions, but I couldn't tell you for certain.