From nobody@FreeBSD.org  Wed Apr 16 17:32:46 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 280C68D4
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Apr 2014 17:32:46 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 141821A88
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Apr 2014 17:32:46 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3GHWjiu051484
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 16 Apr 2014 17:32:45 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3GHWjf3051470;
	Wed, 16 Apr 2014 17:32:45 GMT
	(envelope-from nobody)
Message-Id: <201404161732.s3GHWjf3051470@cgiserv.freebsd.org>
Date: Wed, 16 Apr 2014 17:32:45 GMT
From: John Allman <freebsd@hugme.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Dev tree
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188699
>Category:       amd64
>Synopsis:       Dev tree
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 16 17:40:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Thu Apr 17 18:50:00 UTC 2014
>Originator:     John Allman
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD bigbird 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
There is no problem with version 8 and 9 of FreeBSD running the same version of Bash. You cannot pipe a here document into a loop, FreeBSD complains about missing parts of the dev tree.

This is how to reproduce it:

Fresh install of 10 on AMD 64
install bash `pkg install bash`
Switch to bash `bash`
push a here document into a loop: `while true ; do echo; done< <(echo "123")`
receive an error: "-su: /dev/fd/62: No such file or directory"

I'm sorry I haven't been able to research this any further. I found how while working on some important matters. As I mentioned the above works fine in all previous versions of FreeBSD up until 10.
>How-To-Repeat:
Fresh install
pkg install bash
bash
while true; do echo foo done< <(echo "123")

-su: /dev/fd/62: No such file or directory
>Fix:


>Release-Note:
>Audit-Trail:

From: Konstantin Belousov <kostikbel@gmail.com>
To: John Allman <freebsd@hugme.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: amd64/188699: Dev tree
Date: Thu, 17 Apr 2014 21:44:52 +0300

 On Wed, Apr 16, 2014 at 05:32:45PM +0000, John Allman wrote:
 > This is how to reproduce it:
 > 
 > Fresh install of 10 on AMD 64
 > install bash `pkg install bash`
 > Switch to bash `bash`
 > push a here document into a loop: `while true ; do echo; done< <(echo "123")`
 > receive an error: "-su: /dev/fd/62: No such file or directory"
 > 
 > I'm sorry I haven't been able to research this any further. I found how while working on some important matters. As I mentioned the above works fine in all previous versions of FreeBSD up until 10.
 > >How-To-Repeat:
 > Fresh install
 > pkg install bash
 > bash
 > while true; do echo foo done< <(echo "123")
 > 
 > -su: /dev/fd/62: No such file or directory
 
 So do you have fdescfs mounted on /dev/fd on the machine where the
 test fails ?  It works for me on head, and if unmounted, I get the
 same failure message as yours.  I very much doubt that it has anything
 to do with a system version.
>Unformatted:
