[GRASS5] [bug #2488] (grass) GRASS 5.7 WISH - improve string reading ability in g.parser

guest user via RT grass-bugs at intevation.de
Mon Aug 2 07:06:47 EDT 2004


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

Request number 2488 was commented on by 'guest' (guest user). 
Responding to this message will send mail to the requestor.
			
			Request Tracker
			rt at intevation.de

--------------------------------------------------------------
Cc: grass5 at grass.itc.it

adding  printf("argc=%d\n", argc);  to G_parser() highlights the problem


e.g. 5.7's auto-gen Tcl makes:
button .run -text "Run" -command {
 ...
    set cmd "| $cmd 2>@ stdout"
    catch {open $cmd r} msg
 ...
}

so:
 set cmd {d.text.freetype text="abc 123" path=font.ttf}
gives argc=4 in G_parser

argv[0] is 'd.text.freetype'
argv[1] is 'text="abc'
argv[2] is '123"'
argv[3] is 'path=font.ttf'

and

 set cmd {d.text.freetype text="abc_123" path=font.ttf}
gives argc=3 (and works)

so it is never filtered through a shell for option="a b" to be made one item.
The $cmd string is formed correctly; but not passed to G_parser() correctly.



Hamish



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




More information about the grass-dev mailing list