On Mon, May 11, 2009 at 3:54 AM, Glynn Clements
<glynn@gclements.plus.com> wrote:
Regarding r37069: if in doubt, do it. Try this:
sh \-c 'export \-n GISRC ; g\.version'
Without r37069, 7.0 segfaults due to infinite recursion;
GRASS 6.5.svn (nc_spm_08):~ > sh -c 'export -n GISRC ; g.version'
ERROR: GISRC - variable not set
No segfault - so no backport, right?
Markus
Markus Neteler wrote:
> Regarding r37069: if in doubt, do it. Try this:
>
> sh -c 'export -n GISRC ; g.version'
>
> Without r37069, 7.0 segfaults due to infinite recursion;
GRASS 6.5.svn (nc_spm_08):~ > sh -c 'export -n GISRC ; g.version'
ERROR: GISRC - variable not set
No segfault - so no backport, right?
Right.
The difference is due to changes in lib/gis/env.c. The 6.4 version
marks the environment as initialised at the beginning of read_env(),
while the 7.0 version doesn't mark it as initialised until the end of
read_env(). Consequently, 6.4 won't recurse back into read_env().
--
Glynn Clements <glynn@gclements.plus.com>