[GRASS-dev] [GRASS GIS] #890: shell scripts: %TMP% namespace
collision
GRASS GIS
trac at osgeo.org
Mon Jan 25 04:32:13 EST 2010
#890: shell scripts: %TMP% namespace collision
-------------------------------------+--------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-releasebranch64
Keywords: wingrass, shell scripts | Platform: MSWindows XP
Cpu: All |
-------------------------------------+--------------------------------------
Hi,
- MS-Windows sets %TMP%
- MSys translates existing DOS variables into shell variables
- %TMP% becomes $TMP
- many shell scripts use {{{ TMP=`g.tempfile -p $$` }}}
- many shell scripts try to remove $TMP* files even if they don't exist.
- potential ka-boom if g.tempfile never ran
I just triggered this with a typo: `m.proj hlep`
should we `unset TMP` at the start of any script which uses it?
{{{
d.polar
db.dropcol
i.fusion.brovey
m.proj
r.in.wms
r.mask
r.plane
r.regression.line
r.univar.sh
v.colors
v.db.dropcol
v.db.renamecol
v.db.univar
v.in.garmin
v.in.gpsbabel
v.in.lines
v.in.mapgen
v.in.wfs
v.out.gpsbabel
v.rast.stats
v.univar.sh
}}}
or should we do that as part of WinGrass's Init.sh?
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/890>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list