Page 1 of 1

convert -list format exit code 1

Posted: 2010-11-05T12:30:50-07:00
by rrafal@gmail.com
I'm using ImageMagick 6.5.7-8 2009-11-26 Q16
I execute this command:
$ convert -list format
$ echo $?

The second command prints "1". I was expecting "0".

convert seems to exit with 1 when you enter incorrect arguments. It exits with 0 for all successful executions. The above is one exception which I noticed.

Rafal
rrafal@gmail.com

Re: convert -list format exit code 1

Posted: 2010-11-05T12:34:50-07:00
by magick
We tried your command sequence with ImageMagick 6.6.5-5, the current release, and it returns 0 as expected.