delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/12/07:43:47

X-Spam-Check-By: sourceware.org
Message-ID: <d62889820604120443o64146155ud3cca1f868d50311@mail.gmail.com>
Date: Wed, 12 Apr 2006 07:43:33 -0400
From: "Jeff Lange" <jlange6648 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: XP embedded
In-Reply-To: <20060412095556.GC10758@calimero.vinschen.de>
MIME-Version: 1.0
References: <d62889820604111122u698c48fbk89881ee70082f434 AT mail DOT gmail DOT com> <20060412095556 DOT GC10758 AT calimero DOT vinschen DOT de>
X-IsSubscribed: yes
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k3CBhkNZ030616

/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.

Perhaps the cygwin libraries should be modified so that if the windows
NUL device doesn't exist, it should use a different method.

Thanks.
-Jeff


On 4/12/06, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:
> On Apr 11 14:22, Jeff Lange wrote:
> > Hi all,
> >   While searching though the mail list archives, I found a posting
> > back on March 9th asking about XP Embedded SP2 and the error
> > "/dev/null: No such file or directory".
> >
> > Everyone blasted the poster for running a really old version of Cygwin.
> >
> > Well I'm running into the exact same problem, except that I'm running
> > the latest version of Cygwin. When I start a console I get the message
> > "bash: /dev/null: No such file or directory"
> >
> > I did a little playing around and if I try to pipe anything out
> > /dev/null I get the error.  just for kicks I tried creating /dev/null
> > using mknod, but it failed saying that the file already exists
> >
> > I have the exact same installation on regular XP SP2 and this problem
> > does not exist
> >
> > Let me know if you have any ideas on what the issue might be.
>
> /dev/null in Cygwin is a direct connection to the NUL device of
> Windows.  It looks like this device simply doesn't exist on
> embedded XP.  However, further debugging would be required by
> somebody actually owning embedded XP (e.g. you).
>
> As a workaround, try redirecting output to /dev/zero which is not
> implemented using the Windows NUL device.
>
>
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader          cygwin AT cygwin DOT com
> Red Hat
>
> --
> 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/
>
>

--
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