Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!ucbcad!ucbvax!jade!saturn!ucscb.ucsc.edu!koreth From: koreth@ssyx.ucsc.edu (Steven Grimm) Newsgroups: comp.unix.wizards Subject: Backquote substitution and newlines Message-ID: <1005@saturn.ucsc.edu> Date: Fri, 23-Oct-87 01:20:57 EST Article-I.D.: saturn.1005 Posted: Fri Oct 23 01:20:57 1987 Date-Received: Sun, 25-Oct-87 14:44:14 EST Sender: usenet@saturn.ucsc.edu Reply-To: koreth@ucscb.ucsc.edu (Steven Grimm) Organization: University of California, Santa Cruz Lines: 17 Keywords: newlines 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``