On Sun, 09 Dec 2001, Eric G. Miller wrote:
> > home:~ #df 1>&-
> > df: write error: Bad file descriptor
> > Is it a bug?
> > ">&-" should be compatible with ">/dev/null", right?
Well, no. AFAIK, >&- means to *close* the stdout file descriptor, while
>/dev/null means to redirect (i.e. open) stdout
On Mon, 10 Dec 2001 14:42:15 +0800, Patrick Hsieh <[EMAIL PROTECTED]> wrote:
> Hello,
> home:~ #df 1>&-
> df: write error: Bad file descriptor
>
> Is it a bug?
> ">&-" should be compatible with ">/dev/null", right?
If it is, it must be with "df" as other programs don't complain.
--
Eric G. Mi
Hello,
home:~ #df 1>&-
df: write error: Bad file descriptor
Is it a bug?
">&-" should be compatible with ">/dev/null", right?
--
Patrick Hsieh <[EMAIL PROTECTED]>
3 matches
Mail list logo