From owner-freebsd-bugs Sat Sep 1 6: 0: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5959F37B40A for ; Sat, 1 Sep 2001 06:00:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f81D04317283; Sat, 1 Sep 2001 06:00:04 -0700 (PDT) (envelope-from gnats) Received: from crash.ilse.nl (xo1.ehv.router.ilse.nl [195.18.90.227]) by hub.freebsd.org (Postfix) with ESMTP id 4EB3F37B407 for ; Sat, 1 Sep 2001 05:51:09 -0700 (PDT) Received: (from marcolz@localhost) by crash.ilse.nl (8.11.6/8.11.6) id f81EQ5150797; Sat, 1 Sep 2001 14:26:05 GMT (envelope-from marcolz) Message-Id: <200109011426.f81EQ5150797@crash.ilse.nl> Date: Sat, 1 Sep 2001 14:26:05 GMT From: Marc Olzheim Reply-To: Marc Olzheim To: FreeBSD-gnats-submit@freebsd.org Cc: sys@crash.ilse.nl X-Send-Pr-Version: 3.113 Subject: bin/30248: sh cannot redirect to /dev/fd/1 or from /dev/fd/0 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30248 >Category: bin >Synopsis: sh cannot redirect to /dev/fd/1 or from /dev/fd/0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 01 06:00:03 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Marc Olzheim >Release: FreeBSD 5.0-CURRENT i386 >Organization: ilse technology >Environment: System: FreeBSD crash.ilse.nl 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Aug 30 18:38:55 GMT 2001 marcolz@install0.ilse.nl:/usr/src/sys/i386/compile/zlo i386 >Description: FreeBSD's /bin/sh cannot redirect a filedescriptor to 'itself'. The only problem I have encountered throught this (this is how I found out), is that /usr/bin/mkdep cannot write to /dev/stdout. This affects FreeBSD 2.2 through 5.0 current. >How-To-Repeat: In /bin/sh enter: echo foo > /dev/fd/1 cat < /dev/fd/0 >Fix: I don't know why the open on redir.c:217 fails, so I don't have a fix. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message