[comp.unix.wizards] Backquote substitution and newlines

koreth@ssyx.ucsc.edu (Steven Grimm) (10/23/87)

I need to get newlines (control-Js) into a command line using backquote
substitution.  That is, I have a program whose output sometimes includes
newlines, and I need to get them onto another command's argument list.
Unfortunately, csh sees the newlines in the backquote-substituted string
and decides that the input line is terminated, even though there are
more characters after the newlines.  I've tried putting backslashes
before the newlines, but apparently csh only looks at the backslashes
when accepting tty input, as the backslashes are inserted into the
command line.  Help!

+New! Improved! Now 100% Artificial-+-+-----------------------------------+
|#   #  @@@  ****  &&&&& $$$$$ %   %| |Steven Grimm                       |
|#  #  @   @ *   * &       $   %   %+-+ ARPA: koreth@ucscb.ucsc.edu       |
|###   @   @ ****  &&&&    $   %%%%%| | UUCP: ...!ucbvax!ucscc!ssyx!koreth|
|#  #  @   @ * *   &       $   %   %+-+     ______________________________|
|#   #  @@@  *  ** &&&&&   $   %   %| |     |"Let's see what's out there."|
+-----with NutraSour(TM)!  No natural colors or preservativET)ET)Ef4f4f^0Y``