This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Is there a /dev directory, or how to use /dev/stderr
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Oliver Geisen <recnews at kreisbote dot de>
- Cc: cygwin at cygwin dot com
- Date: Mon, 12 Jul 2004 10:07:53 -0400 (EDT)
- Subject: Re: Is there a /dev directory, or how to use /dev/stderr
- References: <43A96B22-D3CB-11D8-91ED-000393CE9342@kreisbote.de>
- Reply-to: cygwin at cygwin dot com
On Mon, 12 Jul 2004, Oliver Geisen wrote:
> Hello,
>
> i'm missing the /dev directory.
No, you're not. Try, for example, "ls /dev/null". See the User's Guide:
<http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN825>.
> Espacially the stdin,stdout,stderr nodes to do shell-redirection.
> Is this implementation missing or am i to blind to find it ?
/dev/std{in,out,err} are bash artifacts. I'm guessing you're using
/bin/sh, which on Cygwin is not the same as /bin/bash (see
<http://cygwin.com/acronyms/#CYNUX>). Either use bash, or use the
standard bourne shell syntax, e.g., <&0, >&1 and >&2. See also
<http://cygwin.com/ml/cygwin/2003-03/msg00643.html>.
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
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/