[GRASSLIST:4470] Re: fixes for recent problems in tcltkgrass for
GRASS 5.3
Michael Barton
michael.barton at asu.edu
Tue Oct 5 20:20:41 EDT 2004
Glynn,
This seems to fix the problem. Command lines in tcltkgrass can once again
include arguments.
I've committed this change to the CVS and made the slight related changes to
menu.tcl (restoring separate entries for building vector topology and
editing vector categories) and d.measure (making -s the default mode of
operation).
Thanks for suggesting this.
Michael
On 10/4/04 1:56 PM, "Glynn Clements" <glynn.clements at virgin.net> wrote:
> The change causes it to correctly interpret arguments which contain
> spaces but, as a side-effect, it doesn't handle commands which contain
> spaces.
>
> It should probably be:
>
> set prog [lindex $cmd 0]
> set args [lrange $cmd 1 end]
> set name [eval concat $prog [list $args]]
>
> This will split the command but not the arguments.
______________________________
Michael Barton, Professor of Anthropology
School of Human Diversity and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-user
mailing list