DragonFly BSD
DragonFly bugs List (threaded) for 2011-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Peter Avalos via Redmine <bugtracker-admin@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Dec 2011 15:23:18 -0800

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]