Here documents: do they work in FreeBSD make?

Yuri yuri at rawbw.com
Sat Nov 21 23:15:51 UTC 2015


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?

Thanks,
Yuri


More information about the freebsd-hackers mailing list