Re: [GRASS-dev] Re: requring explicit input=-

2011-09-24 Thread Martin Landa
Hi, 2011/9/24 Glynn Clements : > "-" doesn't have to be special-cased for all options, only for options > with gisprompt == "old,file,input" (output=- isn't a problem). If an > old,file,input option has a default value of "-", the GUI should > discard the default. right, hopefully fixed in r48450

Re: [GRASS-dev] Re: requring explicit input=-

2011-09-24 Thread Glynn Clements
Hamish wrote: > can anyone think of a case where "-" would ever be used as an > arbitrary string, not meaning stdin? > I guess it is a similar probability to someone wanting to use a > literal "-" as a file or map name. g.message is all I can think > of, but that's not used in the gui menu. "-"

Re: [GRASS-dev] Re: requring explicit input=-

2011-09-24 Thread Martin Landa
2011/9/24 Hamish : > can anyone think of a case where "-" would ever be used as an > arbit'rary string, not meaning stdin? > I guess it is a similar probability to someone wanting to use a > literal "-" as a file or map name. g.message is all I can think > of, but that's not used in the gui menu.

Re: [GRASS-dev] Re: requring explicit input=-

2011-09-24 Thread Hamish
Martin wrote: > >> * `input=-` means that it will read data from standard input, > >> so the command waits for that (it will wait for eternity if > >> you do not provide any input;-) Hamish: > > I don't have a solution to that (probably common) problem, Martin: > try r48444 (trunk). When providing

Re: [GRASS-dev] Re: requring explicit input=-

2011-09-24 Thread Martin Landa
2011/9/24 Hamish : > Martin wrote: >> * `input=-` means that it will read data from standard input, >> so the command waits for that (it will wait for eternity if you >> do not provide any input;-) > > I don't have a solution to that (probably common) problem, but > fwiw I suspect less often people

[GRASS-dev] Re: requring explicit input=-

2011-09-23 Thread Hamish
Martin wrote: > * `input=-` means that it will read data from standard input, > so the command waits for that (it will wait for eternity if you > do not provide any input;-) I don't have a solution to that (probably common) problem, but fwiw I suspect less often people will try "-" in the gui by