This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: bash redirection problem
- From: Andrew DeFaria <Andrew at DeFaria dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 19 Jun 2002 07:32:37 -0700
- Subject: Re: bash redirection problem
- Newsgroups: gmane.os.cygwin
- References: <web-3593101@oundle.northants.sch.uk>
Newman, Robin wrote:
I'm trying to get bash scripts (from the ht//dig multidig scripts) to
work under cygwin which incorporate commands like
cat /dev/stdin >> somefilename
They work ok under linux, but cygwin (latest version installed
yesterday) returns
cat: /dev/stdin: no such file or directory
there isn't a /dev directory as in linux
/dev is a psuedo directory. There are elements under it. You just have
know they right name! For example, try ls -l /dev/conin or ls -l
/dev/clipboard.
What is the workaround if any to sort this to allow stdin to be
redirected to a file?
Personally I would simply use "cat >> somefilename". That should work
for both Cygwin and Linux.
--
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/