n370 / screenshot-cmd

Automatically exported from code.google.com/p/screenshot-cmd
0 stars 0 forks source link

Exit status (exit code, errorlevel) not according to convention. #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The program's main routine ends with the following statement:

  return stat == Ok;

As a result, the program returns 1 on success and 0 on failure. This is not 
according to the common convention that a return value of 0 indicates 
successful termination. The shell (e.g. cmd.exe) relies on this convention, for 
example when chaining commands using &&.

Since its exit code is (currently) the program's only means to communicate a 
failure, it seems rather important that this is fixed.

Original issue reported on code.google.com by stephan...@gmail.com on 8 Jul 2010 at 12:33

GoogleCodeExporter commented 9 years ago
fixed (r3)

Original comment by bwik...@gmail.com on 22 Apr 2011 at 8:22