Re: bad file descriptor error in bash

2001-12-10 Thread Henrique de Moraes Holschuh
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

Re: bad file descriptor error in bash

2001-12-10 Thread Eric G. Miller
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

bad file descriptor error in bash

2001-12-10 Thread Patrick Hsieh
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]>