[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Here Documents in commands
From: |
Paul D. Smith |
Subject: |
Re: Here Documents in commands |
Date: |
Fri, 29 Nov 2002 10:36:27 -0500 |
%% Jens Schweikhardt <address@hidden> writes:
js> I've been thinking long and deep and even made a few attempts at using
js> shell "here documents" in the commands for a rule. My conclusion is that
js> it is impossible, at least with a POSIX shell.
You're right--in fact I don't think it matters what kind of shell you're
using.
js> In the remote event that I have overlooked something, does anyone
js> know a way how to get something like
js> cat << EOF
js> foo
js> bar
js> EOF
js> in a rule?
You can't, directly. You can do it, as you mentioned, with a bunch of
echos.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist