delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/03/20:49:50

From: dgursky AT qsihome0 DOT qsi DOT com ("David M. Gursky")
Subject: Bash redirection woes...
3 Mar 1997 20:49:50 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.GSO.3.93.970303225113.26815A-100000.cygnus.gnu-win32@qsihome0.qsi.com>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
Original-cc: dg AT atl_dv1 DOT qsi DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I'm having a problem with redirection under bash that I hope the readers
of this list can shed some light on.

I am trying to build Harvest under NT 4.0.  The configuration script has a
number of commands to the effect of:

  cat > conftest.h <<EOF
  .
  .
  .
  EOF

What this is suppose to do is put the contents of the intermediate lines
into the file conftest.h.  Unfortunately, it doesn't seem to work.  Bash
consistently gives me a file not found error.  If I manually enter the
command "cat <<EOF" and then type several lines of text followed by
"EOF", that works find.  If I try cat filename > conftest.h, that works
too, but putting the two redirection constructs toget on the same line
seems to consistently fail.

Since I do noit regularly read this list, I would be grateful for
responses via email to dg AT qsi DOT com.  Thank you.

                                David M. Gursky
                             Quality Systems, Inc.
                         4000 Legato Road, Suite 1100
                              Fairfax, VA  22033

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019