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

Josh Elsasser josh at elsasser.org
Sun Sep 14 17:34:44 UTC 2008


On Sun, Sep 14, 2008 at 11:23:43AM +0200, Juan Jose Garcia-Ripoll wrote:
> On Sun, Sep 14, 2008 at 10:14 AM, Juan Jose Garcia-Ripoll <
> juanjose.garciaripoll at googlemail.com> wrote:
> 
> > On Sun, Sep 14, 2008 at 2:26 AM, Josh Elsasser <josh at elsasser.org> wrote:
> >
> > Oh, and before I forget again, is there any reason that ecl defaults
> >> to putting temporary files in the current directory instead of /tmp?
> >
> >
> > No.
> >
> 
> Do you really have this problem?
> 
> $ 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.

> BTW, your patch has been integrated.

Thanks.




More information about the ecl-devel mailing list