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

sh: fd redirections


From: Stephane Russell <stephane.russell@xxxxxxxxxxxxxxx>
Date: Wed, 05 Dec 2007 00:48:39 -0500

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



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