From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Steve Atwell <satwell@disjoint.net>, zsh-workers@sunsite.dk
Subject: Re: FreeBSD process substitution bug
Date: Sun, 30 Oct 2005 16:33:05 +0000 [thread overview]
Message-ID: <20051030163305.3c89b2ea.p.w.stephenson@ntlworld.com> (raw)
In-Reply-To: <20051029212156.GA57823@stripped.disjoint.net>
> 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.
Thanks for the research. Can you see if the following gives you a
working command substitution in this case?
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.41
diff -u -r1.41 configure.ac
--- configure.ac 28 Oct 2005 17:34:33 -0000 1.41
+++ configure.ac 30 Oct 2005 16:31:06 -0000
@@ -1603,7 +1603,7 @@
[Define to the path of the /dev/fd filesystem.])
AC_CACHE_CHECK(for /dev/fd filesystem, zsh_cv_sys_path_dev_fd,
[for zsh_cv_sys_path_dev_fd in /proc/self/fd /dev/fd no; do
- test x`echo ok|cat $zsh_cv_sys_path_dev_fd/0 2>/dev/null` = xok && break
+ test x`echo ok|(exec 3<&0; cat $zsh_cv_sys_path_dev_fd/3 2>/dev/null;)` = xok && break
done])
if test $zsh_cv_sys_path_dev_fd != no; then
AC_DEFINE_UNQUOTED(PATH_DEV_FD, "$zsh_cv_sys_path_dev_fd")
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page still at http://www.pwstephenson.fsnet.co.uk/
next prev parent reply other threads:[~2005-10-30 16:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-29 7:06 Steve Atwell
2005-10-29 10:02 ` Peter Stephenson
2005-10-29 21:21 ` Steve Atwell
2005-10-30 16:33 ` Peter Stephenson [this message]
2005-10-30 17:31 ` Bart Schaefer
2005-10-30 17:39 ` Peter Stephenson
2005-10-31 1:33 ` Steve Atwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051030163305.3c89b2ea.p.w.stephenson@ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=satwell@disjoint.net \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).