Message from discussion
/tmp and exec on OS X
Received: by 10.68.197.201 with SMTP id iw9mr6128738pbc.6.1352588244980;
Sat, 10 Nov 2012 14:57:24 -0800 (PST)
Path: 6ni73830pbd.1!nntp.google.com!news.glorb.com!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From: "Donal K. Fellows" <donal.k.fell...@manchester.ac.uk>
Newsgroups: comp.lang.tcl
Subject: Re: /tmp and exec on OS X
Date: Sat, 10 Nov 2012 22:57:20 +0000
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <k7mm4j$ig$1@dont-email.me>
References: <k7jaip$u3d$1@dont-email.me> <fd429529-70cc-4440-94c4-872ad243d5e4@x21g2000vbg.googlegroups.com> <k7k37u$v3r$1@dont-email.me> <df72e5d4-a2b0-4893-864e-6328e7496fcc@h16g2000vby.googlegroups.com> <k7kjd4$i94$1@dont-email.me>
Mime-Version: 1.0
Injection-Date: Sat, 10 Nov 2012 22:57:24 +0000 (UTC)
Injection-Info: mx04.eternal-september.org; posting-host="871dd4f1b023decba8754dd9528732fc";
logging-data="592"; mail-complaints-to="ab...@eternal-september.org"; posting-account="U2FsdGVkX191eCvJITPx8X0YALtG9EIX"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
In-Reply-To: <k7kjd4$i94$1@dont-email.me>
Cancel-Lock: sha1:aPJbVm7tKOWzVvpbKFEJjrFqUgk=
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
On 10/11/2012 03:58, Kevin Walzer wrote:
> On 11/9/12 6:45 PM, Alexandre Ferrieux wrote:
>> Can you clarify "not been able to get it working" ? Precise script and
>> errors please.
>
> This structure works around the problem by avoiding the /tmp directory,
> redirecting both stdout and stderr to other files:
Ugh, the code in tclUnixFCmd.c and tclUnixPipe.c are different in what
they respect. That's bad. The code in tclUnixPipe.c also includes
near-duplications, which isn't good code-smell either.
If you're up to recompiling in this particular situation, edit
tclUnixPipe.c to alter the definition of P_tmpdir (after all #includes
have been done) to be the location that is permissible. (Really, that
ought to be set to the correct place during the build process, but it
sounds like it isn't for some reason.)
And do file a bug on this. Too much duplication with things wrong in too
many places.
Donal.