Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: FreeBSD process substitution bug
- X-seq: zsh-workers 21953
- From: Steve Atwell <satwell@xxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: FreeBSD process substitution bug
- Date: Sat, 29 Oct 2005 14:21:56 -0700
- Cc: Steve Atwell <satwell@xxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- In-reply-to: <200510291002.j9TA2Q5P003942@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20051029070656.GA77326@xxxxxxxxxxxxxxxxxxxxx> <200510291002.j9TA2Q5P003942@xxxxxxxxxxxxxxxxx>
On Sat, Oct 29, 2005 at 11:02:26AM +0100, Peter Stephenson wrote:
Steve Atwell wrote:
% cat <(date)
cat: /dev/fd/11: No such file or directory
This happens to me on FreeBSD 5.4 with zsh 4.2.5 built with default
configure options.
That suggests there's something wrong with the following configure test:
any idea what? You should find it works if you #undef PATH_DEV_FD in
config.h.
I did a little more investigation and found the problem. FreeBSD 5.x by
default only provides file descriptors 0, 1, and 2 for the current
process in /dev/fd. If you want to be able to access other file
descriptors, you have to mount the special fdescfs filesystem on
/dev/fd. The configure test to see if zsh can use /dev/fd succeeds
because it only tests /dev/fd/0.
--
Steve Atwell <satwell@xxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author