On Nov 10, 12:22 am, Kevin Walzer <
k...@codebykevin.com> wrote:
> On 11/9/12 5:41 PM, Alexandre Ferrieux wrote:
>
>
>
> > Looking at 8.6 HEAD, function DefaultTempDir in unix/tclUnixFCmd.c
> > does seem to take env(TMPDIR) into account, and resort to /tmp only if
> > TMPDIR is not usable.
>
> > Please clarify (1) how you discovered that /tmp was hard-coded
> > (syscall trace ?) and (2) your options regarding Tcl versions,
> > specific builds etc. (I'm ignorant about the Mac appstore; can you
> > assume or require a standard Tcl distro on the Mac, or do you
> > necessarily ship a wrapped Tcl ?)
>
> Using Tcl 8.5.9, the system install on OS X 10.7. The sandbox daemon
Ah, OK, old version, then. Any reason to stick to it ?
> This thread from c.l.t suggested that I could work around the issue by
> redirecting stderr to a directory that I had permission to write to:
> but I haven't been able to get it working.
Yeah, if you redirect stderr, Tcl will not attempt to create a
tempfile (because this tempfile is here to gather stderr output
feeding the final error message of [exec]).
Can you clarify "not been able to get it working" ? Precise script and
errors please.
-Alex