Date: Sat, 21 Nov 2015 20:25:03 -0700 From: Ian Lepore <ian@freebsd.org> To: Yuri <yuri@rawbw.com>, Freebsd hackers list <freebsd-hackers@FreeBSD.org> Subject: Re: Here documents: do they work in FreeBSD make? Message-ID: <1448162703.1398.5.camel@freebsd.org> In-Reply-To: <5650FB25.2060408@rawbw.com> References: <5650FB25.2060408@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2015-11-21 at 15:15 -0800, Yuri wrote: > This syntax doesn't work for me: > @cat <<EOF >${MY_DIR}/my-file \ > #!/bin/sh \ > \ > echo 'Hello World!' \ > EOF \ > > ${MY_DIR}/my-file is created empty. > > Could anybody give me a hint what am I doing wrong? > The \ line-splicing is being done by make, the shell sees one long string which has a comment delim right after the filename and no here document at all. You should be able to see that if you take the @ off the line (or make -dl). -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1448162703.1398.5.camel>