[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: |
Greg Wooledge |
Subject: |
Re: bash leaks sh-np-NNN files and pipes in /tmp/ when command substitution is used |
Date: |
Thu, 12 Dec 2013 08:02:17 -0500 |
User-agent: |
Mutt/1.4.2.3i |
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.
If bash is using named pipes of the form /var/tmp/sh-np-* or /tmp/sh-np-*
then the compile-time options or detection must have failed to find a
usable /dev/fd/ subsystem. (My HP-UX workstation is littered with
sh-np-* FIFOs in BOTH /tmp and /var/tmp.)