Date: Sat, 1 Sep 2001 14:28:33 GMT From: Marc Olzheim <marcolz@ilse.nl> To: FreeBSD-gnats-submit@freebsd.org Cc: <sys@ilse.nl> Subject: bin/30247: sh cannot redirect to /dev/fd/1 or from /dev/fd/0 Message-ID: <200109011428.f81ESXu50804@crash.ilse.nl>
next in thread | raw e-mail | index | archive | help
>Number: 30247 >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 05:40:06 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109011428.f81ESXu50804>