Posted: 2006-02-16T19:26:44-07:00
Convert should return an exit of 0 whcih in UNIX terms means success
when no error occured.
It should only return a exit of 1 for major errors.
For example a -crop of an image that missed the image will report that it missed as a warning, but this is NOT an error, so convert should still return a
exit of 0.
ASIDE: You command should not be using
If you want it to always report the error status use
Of course for Csh or Tcsh that should be .
when no error occured.
It should only return a exit of 1 for major errors.
For example a -crop of an image that missed the image will report that it missed as a warning, but this is NOT an error, so convert should still return a
exit of 0.
ASIDE: You command should not be using
Code: Select all
&& echo $? || echo $?
Code: Select all
; echo $?
Code: Select all
; echo $status