Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: FreeBSD process substitution bug



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