delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/12/12:28:24

X-Spam-Check-By: sourceware.org
Date: Wed, 12 Apr 2006 12:28:03 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: XP embedded
In-Reply-To: <20060412161937.GG9135@calimero.vinschen.de>
Message-ID: <Pine.GSO.4.63.0604121222450.21356@access1.cims.nyu.edu>
References: <d62889820604111122u698c48fbk89881ee70082f434 AT mail DOT gmail DOT com> <20060412095556 DOT GC10758 AT calimero DOT vinschen DOT de> <d62889820604120443o64146155ud3cca1f868d50311 AT mail DOT gmail DOT com> <20060412154903 DOT GC13171 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 63 DOT 0604121158590 DOT 21356 AT access1 DOT cims DOT nyu DOT edu> <20060412161937 DOT GG9135 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Wed, 12 Apr 2006, Corinna Vinschen wrote:

> On Apr 12 12:05, Igor Peshansky wrote:
> > On Wed, 12 Apr 2006, Christopher Faylor wrote:
> >
> > > On Wed, Apr 12, 2006 at 07:43:33AM -0400, Jeff Lange wrote:
> > > >/dev/zero does work properly.  I changed line 68 in /etc/profile to
> > > >use /dev/zero instead of /dev/null and I no longer get the bash error
> > > >on start up.
> >
> > FWIW, /dev/zero is not always the proper substitution for /dev/null (i.e.,
> > on input redirection, it will work differently).
>
> Mon dieu!

Yes, surprising, isn't it? :-)

> > What I'm wondering is whether we need the Windows NUL device at all for
> > implementing /dev/null...  It's rather trivial[*] to implement one without
> > resorting to a Windows device.  Would there be any way of distinguishing
> > an emulation from the real NUL device?
> > 	Igor
>
> Since /dev/null is a really existing native device, it also works for
> stdio redirection when executing a native Windows process.  Off the top
> of my head I don't know a case for which that really matters, but it's
> guaranteed that somebody on the list will find a case really soon after
> this change.

Hmm, true, but wouldn't we have this problem already if someone redirected
some native program's output to /dev/zero?  Or are you talking about
inheriting an open handle to /dev/null?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019