bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: functions, process substitution, bad file descriptor


From: Greg Wooledge
Subject: Re: functions, process substitution, bad file descriptor
Date: Fri, 27 Feb 2009 09:51:00 -0500
User-agent: Mutt/1.4.2.2i

On Fri, Feb 27, 2009 at 09:26:29AM -0500, Ben Hyde wrote:
> f2(){
>   date
>   cat $1
> }

> f2 <(echo l8r)

> Fri Feb 27 09:18:45 EST 2009
> cat: /dev/fd/63: Bad file descriptor

For whatever it's worth, I can reproduce this behavior on both Linux
and OpenBSD (which use /dev/fd/*), in several versions of bash, but
not on HP-UX (which uses named pipes).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]