Opened 15 years ago
Closed 15 years ago
#890 closed defect (fixed)
shell scripts: %TMP% namespace collision
Reported by: | hamish | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 6.4.0 |
Component: | Default | Version: | svn-releasebranch64 |
Keywords: | wingrass, shell scripts | Cc: | |
CPU: | All | Platform: | MSWindows XP |
Description
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
Change History (8)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
comment:5 by , 15 years ago
Replying to hamish:
backport this to relbr6.4 before or after rc6?
Please (let's) do it before RC6 to avoid a RC7...
Markus
comment:6 by , 15 years ago
comment:7 by , 15 years ago
comment:8 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Replying to hamish:
Use a different variable.
No. That would cause problems for anything which expects it to be set. As would changing its value.