[Ecls-list] (compile) leaks zero-length temporary files

Josh Elsasser josh at elsasser.org
Sun Sep 14 18:13:56 UTC 2008


On Sun, Sep 14, 2008 at 07:42:20PM +0200, Erik Huelsmann wrote:
> >> $ ecl -norc -eval '(progn (print (translate-logical-pathname "TMP:FOO"))
> >> (quit))'
> >> #P"/var/folders/kU/kUiyJak2GK4YuehJzAcNGU+++TI/-Tmp-/FOO"
> >> $ echo $TMPDIR
> >> /var/folders/kU/kUiyJak2GK4YuehJzAcNGU+++TI/-Tmp-/
> >>
> >> The logical hostname "TMP:" is defined as an alias of $TMPDIR, $TEMP or
> >> $TMP, whatever is defined.
> >
> > $ printenv | egrep 'TE?MP'
> > $ ecl -norc -eval '(progn (print (translate-logical-pathname "TMP:FOO")) (quit))'
> > #P"FOO"
> >
> > If none of those three variables are set then it falls back to the
> > current directory.  It seems to me that /tmp would be a more sane
> > default than . in that case.
> 
> Even on Windows?

I should have said that it's a sane default to fall back to on systems
where it exists.  I would guess that on Windows, if the above
environment variables are often not set, that there is a similar
fallback location that programs tend to hard-code.




More information about the ecl-devel mailing list