[HN Gopher] TTY-Exit: terminal exit codes for humans and machines
       ___________________________________________________________________
        
       TTY-Exit: terminal exit codes for humans and machines
        
       Author : pmurach
       Score  : 27 points
       Date   : 2020-02-01 20:24 UTC (2 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | remram wrote:
       | I'm not totally sure what the point of this is. This is
       | advertised as exit codes "for humans and machines", however
       | 
       | * humans will always get way more information from a readable
       | error message printed to stderr before exiting
       | 
       | * machines do not care about error details from third-party
       | tools, apart from whether they are an input error (which can be
       | blamed on the user, if they provided said input) or an internal
       | error (including usage error) which is a bug and should be fixed
       | by the calling program's developer
       | 
       | Indeed, the README has a lot of examples of using it in your
       | child program, to report error, but no example of a parent
       | program dealing with the reported error.
        
       | gdwatson wrote:
       | It seems to be a Ruby equivalent to sysexits.h.[1] I don't know
       | how widely used the codes are, but the idea is neat.
       | 
       | [1]
       | https://manpage.me/index.cgi?apropos=0&q=sysexits&sektion=0&...
        
       ___________________________________________________________________
       (page generated 2020-02-01 23:00 UTC)