[GRASS-dev] Re: [GRASS-user] 6.4 vs 7.0

Hamish hamish_b at yahoo.com
Sun Jan 17 09:17:01 EST 2010


[->dev]

Glynn wrote:
> Regardless of how it affects the GUI, I really can't accept
> that having to add " in=-" is a significant burden.

it's that little bit extra PITA when the computer can figure it out
for itself..

ok, I can accept the GUI window with empty input= being sent into
limbo argument.


> IMHO, we should just fix 6.4's db.execute to accept in=-.
> Allowing it provides forward-compatibility with 7.0 without breaking
> backward compatibility with 6.3/6.4-SVN. Ditto for v.in.ascii and
> anything else which is capable of reading from stdin.

I've got no problem fixing those. In fact I did that for v.in.ascii
in 6.5 two weeks ago. db.execute looks like it will take a similar
treatment fairly easily.

 
> If it helps, I could add G_open() and G_fopen() which accept "-" as a
> valid filename (meaning stdin for read, stdout for write;
> obviously read-write access won't work with "-").

I can't say it would hurt beyond messing with 6.x more than we have to,
but I don't think that's strictly necessary. We're not talking about that
many modules and it's usually just a one or two liner.



Hamish



      


More information about the grass-dev mailing list