Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2001 14:26:05 GMT
From:      Marc Olzheim <marcolz@crash.ilse.nl>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        sys@crash.ilse.nl
Subject:   bin/30248: sh cannot redirect to /dev/fd/1 or from /dev/fd/0
Message-ID:  <200109011426.f81EQ5150797@crash.ilse.nl>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109011426.f81EQ5150797>