Bug 48434 - shells/bash2: process substitution broken on 5.0
Summary: shells/bash2: process substitution broken on 5.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: David E. O'Brien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-18 19:00 UTC by Christian Weisgerber
Modified: 2004-08-09 18:44 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.79 KB, patch)
2003-02-18 19:00 UTC, Christian Weisgerber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Weisgerber freebsd_committer freebsd_triage 2003-02-18 19:00:05 UTC
bash's process substitution feature is implemented by way of either
/dev/fd/* or named pipes in /tmp.  The configure script detects the
existence of /dev/fd/ and chooses that scheme.  However, 5.0's devfs
only provides for /dev/fd/[0-2].  bash tries to use other descriptors
and fails:

bash$ cat <(cat /COPYRIGHT)
cat: /dev/fd/63: No such file or directory

The patch below checks whether higher descriptors are available
before enabling the use of /dev/fd for process substitution.  If
the check fails, named pipes will be used instead.

Note that mounting fdescfs on /dev/fd will enable higher descriptors.
Comment 1 Christian Weisgerber freebsd_committer freebsd_triage 2003-02-18 19:52:54 UTC
Responsible Changed
From-To: freebsd-ports-bugs->obrien

Over to maintainer.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2003-09-29 13:48:37 UTC
Hello David,

Please see http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/48434
regarding a problem with the bash2 port. Can you please approve
this patch?

Edwin

-- 
Edwin Groothuis
edwin@freebsd.org
http://www.mavetju.org
Comment 3 David E. O'Brien freebsd_committer freebsd_triage 2004-08-09 18:44:04 UTC
State Changed
From-To: open->closed

Committed, Thanks!