Bug 30248

Summary: sh cannot redirect to /dev/fd/1 or from /dev/fd/0
Product: Base System Reporter: Marc Olzheim <marcolz>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: sys
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Marc Olzheim 2001-09-01 14:00:03 UTC
	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.

Fix: 

I don't know why the open on redir.c:217 fails, so I don't
	have a fix.
How-To-Repeat: 	In /bin/sh enter:

	echo foo > /dev/fd/1

	cat < /dev/fd/0
Comment 1 Jonathan Chen freebsd_committer freebsd_triage 2001-09-02 23:33:10 UTC
State Changed
From-To: open->closed

suplicate PR, see bin/30247