Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!att!ucbvax!dog.ee.lbl.gov!elf.ee.lbl.gov!torek From: torek@elf.ee.lbl.gov (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Can sh or csh do this VMS DCL trick?? Message-ID: <12584@dog.ee.lbl.gov> Date: 28 Apr 91 15:29:05 GMT References: <1991Apr28.003414.26784@convex.com> Reply-To: torek@elf.ee.lbl.gov (Chris Torek) Distribution: comp Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 35 X-Local-Date: Sun, 28 Apr 91 08:29:05 PDT In article <1991Apr28.003414.26784@convex.com> tchrist@convex.COM (Tom Christiansen) describes `here-documents', and concludes with >In Bourne-compatible shells (and perl) you can control whether variables >get interpolated in the intervening text: just quote the token (in this >case EOD), and you quote the text. The csh, to no one's great surprise, >has no such ability. Actually, it does. It is merely somewhat annoying about it. In sh, cat << \end foo end and cat << 'end' foo end do the same thing. In the C shell these must be spelled as cat << \end foo \end and cat << 'end' foo 'end' respectively. -- In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427) Berkeley, CA Domain: torek@ee.lbl.gov