convert -list format exit code 1

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
rrafal@gmail.com

convert -list format exit code 1

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert -list format exit code 1

Post by magick »

We tried your command sequence with ImageMagick 6.6.5-5, the current release, and it returns 0 as expected.
Post Reply