Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <5.2.0.9.2.20030310091931.020685d0@pop3.cris.com>
X-Sender: rrschulz@pop3.cris.com
Date: Mon, 10 Mar 2003 09:31:41 -0800
To: cygwin@cygwin.com
From: Randall R Schulz <rrschulz@cris.com>
Subject: RE: >/dev/stderr broken in /bin/sh?, makewhatis unhappy, &
  apropos  confused, or just me?
Cc: <cygwin-apps@cygwin.com>
In-Reply-To: <002201c2e6cf$f7e8c0c0$1403a8c0@sc.tlinx.org>
References: <Pine.GSO.4.44.0303092354060.11568-100000@slinky.cs.nyu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

Larry,

At 22:40 2003-03-09, LA Walsh wrote:

> > A couple of points to note:
> > 1) In Cygwin, /bin/sh != bash.  /bin/sh == ash, and it doesn't support
> >    bash'isms like /dev/stderr.  Use >&2 and >&1 in /bin/sh.
>-----
>     "Bash"ism?
>
> >From Oreillynet:
>
>     Some UNIX systems, and utilities such as gawk, support
>     special filenames like /dev/stdin, /dev/stdout, and
>     /dev/stderr. You can use these just as you'd use other
>     files.
>
>I just happened to look and it is on my SuSE system as well -- I didn't
>know bash had special handling for it till just now...learn something
>new every day!

Whew! I'm glad I'm not the only one who didn't realize BASH was 
handling these on systems where there's no std* files in /dev.

On my SuSE 8.1 (kernel 2.4.19), /dev/std{in,out,err} are symbolic links 
to fd/{0,1,2} (where /dev/fd is a symbolic link to /proc/self/fd).


>Oh, you'll like this one: "Learn Linux in 15 minutes a week!":
>http://www.2000trainers.com/article.aspx?articleID=144&page=2
>
>Says /dev/std{in|err|out} are standard on linux systems.
>Maybe Cygwin should be renamed "CyNUX": "Cygwin is Not
>Unix or Linux"? :-)

Maybe "CygNoX?" The lore could be that it's closely related to the well 
known air pollutants NOx but with the primary toxic and polluting 
effects on the infosphere, not the atmosphere. Or  maybe it could be 
said to stand for the "Cygwin school of hard nox?


>I guess the author of 'makewhatis' didn't know this either.  Perhaps
>it's on enough systems.

That's the great thing about standards. There are so many to choose 
from (and assume).


Randall Schulz 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

