On Wed, Oct 02, 2002 at 05:47:52AM -0700, Barry Buchbinder wrote: >I have a problem with gawk. > >Under bash, it works as expected. > >Under command.com (win98se) it does the following when >taking input from a pipe or by redirection. > > C:\> cat autoexec.bat | gawk '{ print "!" $0 "!" }' > GAWK: cmd. line:2: fatal: file `-' is a directory > > C:\> gawk '{ print "!" $0 "!" }' < autoexec.bat > GAWK: cmd. line:2: fatal: file `-' is a directory
Sounds like you have another, non-cygwin version of gawk on your system. cgf -- Please do not send me personal email with cygwin questions. Use the resources at http://cygwin.com/ . -- 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/