From abc@anchorageinternet.org  Wed Jul 17 20:43:09 2002
Return-Path: <abc@anchorageinternet.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E67C337B400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Jul 2002 20:43:09 -0700 (PDT)
Received: from anchorageinternet.org (groggy.anc.acsalaska.net [208.151.119.232])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7BA5143E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Jul 2002 20:43:03 -0700 (PDT)
	(envelope-from abc@anchorageinternet.org)
Received: (from abc@localhost)
	by anchorageinternet.org (8.12.3/8.11.6) id g6I3h3C0002966;
	Thu, 18 Jul 2002 03:43:03 GMT
	(envelope-from abc)
Message-Id: <200207180343.g6I3h3C0002966@anchorageinternet.org>
Date: Thu, 18 Jul 2002 03:43:03 GMT
From: Abc Xyz <abc@anchorageinternet.org>
Reply-To: Abc Xyz <abc@anchorageinternet.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: 2>&- construct fails to close stderr in "sh"
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         40716
>Category:       bin
>Synopsis:       2>&- construct fails to close stderr in "sh"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 17 20:50:01 PDT 2002
>Closed-Date:    Thu Jul 18 03:06:51 PDT 2002
>Last-Modified:  Thu Jul 18 03:06:51 PDT 2002
>Originator:     Abc Xyz
>Release:        FreeBSD 4.6-RELEASE i386
>Organization:
>Environment:
System: FreeBSD en26.groggy.anc.acsalaska.net 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Sat Jul 13 20:06:17 AKDT 2002 root@:/usr/src/sys/compile/MYKERN i386

>Description:

    2>&- construct in FBSD 2.6-RELEASE default "sh" is broken.
    fails to close stderr.

>How-To-Repeat:

    $ ls 2>&- i_dont_exist.txt
    $ mkdir 2>&- i_already_exist

>Fix:
    


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tjr 
State-Changed-When: Thu Jul 18 03:05:17 PDT 2002 
State-Changed-Why:  
Duplicate of bin/40334 (http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/40334), 
this problem is fixed in -CURRENT, I plan on MFC'ing it in the next 
few days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=40716 
>Unformatted:
