[GRASS-dev] Re: [GRASS-SVN] r49204 - grass/trunk/vector/v.info

Markus Metz markus.metz.giswork at googlemail.com
Mon Nov 14 05:51:29 EST 2011

Hamish wrote:
> Martin wrote:
>> shrug, `-g` is mainly used for shell script output,
>> I think it would be better update `r.info` and `v.info` to
>> follow this logic, g.region is an exception. You are going to
>> the opposite direction!
> AFAIR g.region was the original, using -g to display region
> bounds in shell script style. later "-g" was added to r.info
> and v.info to do the same, and later again "-g" was added to
> other modules like r.univar as generic shell script style
> alias -- not the other way around! These were mostly added by
> MarkusN and myself over the years, although I am very sure
> there were others involved too.

Quickly glancing at grass 4.0, g.region -p prints the current region,
whereas the -g flag is there to print in shell style. What exactly is
printed in shell style is obviously module-dependent (emphasis on
shell-style, not content).

my 2c

Markus M

> r.info -g, v.info -g, g.region -g all show the region in shell
> script style and all act the same. it's a good thing and makes
> learning the tools easier. IMO it would be a disservice to morph
> -g into a shell style dump of all internal variables. it clutters
> your working environment.
> 2c from fuzzy memories of years ago,
> Hamish
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev

More information about the grass-dev mailing list