[DragonFlyBSD - Bug #874] (Closed) sh: fd redirections

Peter Avalos via Redmine bugtracker-admin at leaf.dragonflybsd.org
Wed Dec 28 15:23:18 PST 2011


Issue #874 has been updated by Peter Avalos.

Description updated
Status changed from New to Closed
Assignee deleted (0)

This should work correctly now. Please reopen if you don't agree.
----------------------------------------
Bug #874: sh: fd redirections
http://bugs.dragonflybsd.org/issues/874

Author: Stephane Russell
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 


Hi,

I was testing a few things, and I was wondering if that behavior is normal:

$ exec 3>&1
$ echo toto >&3
toto
$ echo toto > /dev/fd/3
toto
$ exec 3>&-
$ echo toto >&3
toto
$ echo toto > /dev/fd/3
cannot create /dev/fd/3: Bad file descriptor

Why is >&3 ignores the redirection, but not /dev/fd/3? It seems to me
like a bug.

SR


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account





More information about the Bugs mailing list