Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!rutgers!ll-xn!cullvax!drw
From: drw@cullvax.UUCP
Newsgroups: comp.unix.questions
Subject: Newlines inside command substitutions in csh
Message-ID: <640@cullvax.UUCP>
Date: Wed, 10-Dec-86 15:15:05 EST
Article-I.D.: cullvax.640
Posted: Wed Dec 10 15:15:05 1986
Date-Received: Sun, 14-Dec-86 07:45:46 EST
Organization: Cullinet Software, Inc., Westwood, MA
Lines: 20

It seems that in Dec Ultrix 1.2 (a bsd 4.2), csh won't allow newlines
in commands that are part of a command substitution.  For example, the
command

	fgrep -l 'foo\
	bar' file

works fine, but

	echo `fgrep -l 'foo\
	bar' file`

doesn't.  As far as I can tell from the manual pages, ending a line
with \ should quote the newline in all circumstances, but csh replies
"Unmatchd `".  Also, using more than one \ doesn't seem to help, so it
probably isn't that I'm not quoting the newline correctly.
-- 
Dale Worley		Cullinet Software
UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw
ARPA: cullvax!drw@eddie.mit.edu