From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 8 Jul 1997 14:49:03 -0400 From: erik quanstrom quanstro@Infomkt.ibm.com Subject: broken rc here documents. Topicbox-Message-UUID: 5c74f072-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19970708184903.iUYbf5GmNz5K0pOaHjpRGzrf6GZt3-FuxY9agYghGiE@z> >Hi, > >What should be the correct output for this rc fragment? > >{ >cat <hi there >EOF >} > >I'm getting > >hi: file does not exist >EOF: file does not exist the last time i tried writing a shell (1992) i decided that here documents were *way* too much work when you consider the simple quoting rules of rc (and other reasonable shells). all you really need to do is replace each ' with '' and then put the whole thing in 's. at one point i'd written a version of shar that used exactly this trick but i seem to have lost it. the point is: here documents are almost impossible to get right so why not Just Use Quotes? erik