non-zero exit code with -version
Posted: 2014-06-01T08:52:26-07:00
After updating ImageMagick to 6.8.9-2, the -version flag is now returning a non-zero exit code and isn't consistent across all of the tools.
Code: Select all
#convert -version
Version: ImageMagick 6.8.9-2 Q16 x86_64 2014-06-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jbig jng jpeg png tiff webp x xml zlib
# echo $?
1
Code: Select all
# compare -version
Version: ImageMagick 6.8.9-2 Q16 x86_64 2014-06-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jbig jng jpeg png tiff webp x xml zlib
# echo $?
2
Code: Select all
# display -version
Version: ImageMagick 6.8.9-2 Q16 x86_64 2014-06-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib fontconfig freetype jbig jng jpeg png tiff webp x xml zlib
# echo $?
1