[Top][All Lists]

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

I thought >&- and > /dev/null were almost the same

From: Dan Jacobson
Subject: I thought >&- and > /dev/null were almost the same
Date: 24 Nov 2001 09:22:05 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

$ date > /dev/null
$ date >&-
date: write error: Bad file descriptor
$ echo o >&-
$ uname -a
Linux localhost.localdomain 2.2.17-21mdk #1 Thu Oct 5 13:16:08 CEST 2000 i586 

I swear in the good old days I don't remember any "Bad file
descriptor" ruckus.  And how do you explain echo's okness?
http://www.geocities.com/jidanni/ Tel+886-4-25854780

reply via email to

[Prev in Thread] Current Thread [Next in Thread]