[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash leaks sh-np-NNN files and pipes in /tmp/ when command substitut
From: |
Chet Ramey |
Subject: |
Re: bash leaks sh-np-NNN files and pipes in /tmp/ when command substitution is used |
Date: |
Thu, 12 Dec 2013 10:20:29 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 |
On 12/12/13 8:02 AM, Greg Wooledge wrote:
> On Thu, Dec 12, 2013 at 07:53:32AM +0100, Piotr Grzybowski wrote:
>> Yuri: I have verified that under linux 3.2.0, bash-4.2.25, nothing of
>> the sort takes place. tee gets /dev/fd/${somefd}, why it is not
>> supported in bsd kernel i have no idea, but I thought it was.
>
> On OpenBSD, at least, this is true. I haven't tried FreeBSD.
Unless things have gotten better on FreeBSD, it isn't. The issue with
FreeBSD is that is has historically only provided /dev/fd/[012], and
that isn't general enough for bash's use. FIFOs are definitely a
second choice here.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/