[GRASS-dev] [bug #5483] (grass) g.mremove through gis manager GUI seems not to work well

Paul Kelly paul-grass at stjohnspoint.co.uk
Wed Feb 7 19:20:27 EST 2007


On Thu, 8 Feb 2007, Hamish wrote:

> Markus:
>>> up to now interactive input in tcl based dialogs is not possible.
>>> Using the -f flag (force removal) you can delete also in gis.m.
>>>
>>> Probably we need to enforce -f somehow in gis.m - how to do that?
>
> Glynn:
>> I've committed a fix which removes the prompting code. The -f flag
>> remains for compatibility but is ignored.
>
> I understand the push to remove interactive, but this one is a fairly
> important failsafe and I wouldn't mind it staying. With the -f flag a

I agree this seems a bit of a dangerous change, especially since an easy 
workaround was available... hope it doesn't catch anybody out who is just 
experimenting with a wildcard pattern but not sure if it's the one they 
want! I know I have used it like that in the past anyway.

> non-interactive mode is available. An -i or --interactive flag as rm
> uses could be added, but who would bother setting up an alias to use it?
> Problably not the new users who would benefit from it the most.
>
>
> To answer Markus's question, you can preset/hint an option's answer in
> the GUI by giving it on the command line and adding the --ui switch to
> force a GUI:
>
> g.mremove -f --ui
>
> I've backported a fix using this method to the 6.2 GUI menu.tcl:
> -command {execute "g.mremove -f --ui" }}
>
>
> .. as for 6.3, ?
>
>
> Hamish
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
>




More information about the grass-dev mailing list