Newlines inside command substitutions in csh
drw at cullvax.UUCP
drw at cullvax.UUCP
Thu Dec 11 06:15:05 AEST 1986
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 at eddie.mit.edu
More information about the Comp.unix.questions
mailing list