[GRASS-dev] g.region -g3

Hi

I would like to ask about a change in g.region behaviour.

When -g3 option is used, g.region prints the number of cell in
three dimensions as 3dcells. Two comments, first it is
inconsisten with other 3d names, it should be called cells3.
Second is that if one uses eval $(g.region -g3) then the shell
complains as 3dcells is not a qualified variable name (i have
tested this on bash and zsh) as it starts with a number, again
cells3 fixes the problem.

I am using GRASS 6.4.0+42329 (debian sueeze).

Well, thats all
Thanks a lot
Patricio
~

W dniu 27.10.2010 16:42, Patricio Toledo pisze:

When -g3 option is used, g.region prints the number of cell in three
dimensions as 3dcells. Two comments, first it is inconsisten with
other 3d names, it should be called cells3. Second is that if one
uses eval $(g.region -g3) then the shell complains as 3dcells is not
a qualified variable name (i have tested this on bash and zsh) as it
starts with a number, again cells3 fixes the problem.

Look like a bug to me. Acoording to
http://www.gnu.org/software/bash/manual/bashref.html#Definitions:

name
     A word consisting solely of letters, numbers, and underscores, and
*beginning with a letter or underscore*. Names are *used as shell
variable and function names*. Also referred to as an identifier.

Please report this in GRASS Trac.

Maciek

--
Maciej Sieczka
http://www.sieczka.org

Hi,

2010/10/30 Maciej Sieczka <msieczka@sieczka.org>:

When -g3 option is used, g.region prints the number of cell in three
dimensions as 3dcells. Two comments, first it is inconsisten with
other 3d names, it should be called cells3. Second is that if one
uses eval $(g.region -g3) then the shell complains as 3dcells is not
a qualified variable name (i have tested this on bash and zsh) as it
starts with a number, again cells3 fixes the problem.

Look like a bug to me. Acoording to
http://www.gnu.org/software/bash/manual/bashref.html#Definitions:

name
A word consisting solely of letters, numbers, and underscores, and
*beginning with a letter or underscore*. Names are *used as shell
variable and function names*. Also referred to as an identifier.

Please report this in GRASS Trac.

fixed in r44089. Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa