[GRASS5] [bug #2740] (grass) i.image.mosaic invoked from GUI fails on both 5.3 and 5.7

this bug's URL: http://intevation.de/rt/webrt?serial_num=2740
-------------------------------------------------------------------------

Subject: i.image.mosaic invoked from GUI fails on both 5.3 and 5.7

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources

Refers to GUI in both Grass 5.3cvs and 5.7cvs, 2004_11_13.

--- 5.7 ---

i.image.mosaic image1=N3350.blue image2=N3350.green image3=N3350.red

ATTENTION: Do not forget to set region properly to cover all images!

Mosaicing four images...
syntax error, unexpected '(', expecting '='
Parse error
tail: /home/grassdata/odrautm/wiz/colr/(null): No such file or directory
Ready. File N3350.blue.N3350.green.N3350.red.(null).mosaic created.

--- 5.3(5.5) ---

ATTENTION: Do not forget to set region properly to cover all images!

Mosaicing two images...
syntax error, unexpected ',', expecting '='
Parse error
cat: /home/grassdata/odrautm//colr/N3350.green,N3350.red: No such file or directory
Ready. File N3350.blue.N3350.green,N3350.red.mosaic created.

Maciek Sieczka

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=2740
-------------------------------------------------------------------------

Subject: i.image.mosaic invoked from GUI fails on both 5.3 and 5.7

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources

Refers to GUI in both Grass 5.3cvs and 5.7cvs, 2004_11_13.

--- 5.7 ---

i.image.mosaic image1=N3350.blue image2=N3350.green image3=N3350.red

ATTENTION: Do not forget to set region properly to cover all images!

Mosaicing four images...
syntax error, unexpected '(', expecting '='
Parse error
tail: /home/grassdata/odrautm/wiz/colr/(null): No such file or directory
Ready. File N3350.blue.N3350.green.N3350.red.(null).mosaic created.

Right. i.image.mosaic checks whether the $GIS_OPT_* variables are
empty to determine if the option was supplied. But an omitted option
results in the variable having the value "(null)" rather than empty.

This is a bug in g.parser. Patch attached.

--
Glynn Clements <glynn@gclements.plus.com>

(attachments)

g.parser.diff (429 Bytes)