-- and command parsing
Posted: 2013-06-18T09:19:45-07:00
Hi,
could I have your opinion about this bug [1]
Reproduced here
How to reproduce:
$ mkdir -p /tmp/a ; cd /tmp/a
$ for f in alpha beta -delta; do convert -size 100x100 xc: +noise Random -- $f.png; done
$ montage -- *.png gamma.jpg
Expected behaviour:
( image gamma.jpg is created )
Observed behaviour:
"montage: unrecognized option `-delta.png' @ error/montage.c/MontageImageCommand/865."
What's weird is I'd expect convert to throw a similar exception when I execute:
$ convert -size 100x100 xc: +noise Random -delta.png
but it doesn't. This is what I get instead when I use '--' to stop parsing switches:
$ convert -size 100x100 xc: +noise Random -- -delta.png
convert: missing an image filename `-delta.png' @ error/convert.c/ConvertImageCommand/3009.
[1] https://bugs.launchpad.net/ubuntu/+sour ... ug/1050950
could I have your opinion about this bug [1]
Reproduced here
How to reproduce:
$ mkdir -p /tmp/a ; cd /tmp/a
$ for f in alpha beta -delta; do convert -size 100x100 xc: +noise Random -- $f.png; done
$ montage -- *.png gamma.jpg
Expected behaviour:
( image gamma.jpg is created )
Observed behaviour:
"montage: unrecognized option `-delta.png' @ error/montage.c/MontageImageCommand/865."
What's weird is I'd expect convert to throw a similar exception when I execute:
$ convert -size 100x100 xc: +noise Random -delta.png
but it doesn't. This is what I get instead when I use '--' to stop parsing switches:
$ convert -size 100x100 xc: +noise Random -- -delta.png
convert: missing an image filename `-delta.png' @ error/convert.c/ConvertImageCommand/3009.
[1] https://bugs.launchpad.net/ubuntu/+sour ... ug/1050950