'convert' exit status is zero (success) when arguments are not understood
Posted: 2015-10-15T13:43:02-07:00
If you pass too few arguments to convert:
it prints help, but exits with status code 0, indicating success.
This is obviously really bad behaviour, especially for scripts which rely on error codes.
So far I've only found this happening when you fail to pass enough arguments, but perhaps there are other ways to trigger this too. It works correctly if you pass an option that doesn't exist.
Code: Select all
convert rubbishrubbish
This is obviously really bad behaviour, especially for scripts which rely on error codes.
So far I've only found this happening when you fail to pass enough arguments, but perhaps there are other ways to trigger this too. It works correctly if you pass an option that doesn't exist.