Passing multi-line arguments through c-shell

Chris Torek chris at mimsy.UUCP
Wed Jan 18 14:16:05 AEST 1989


In article <259 at bridge2.3Com.Com> jzs at bridge2.3Com.Com (Jeremy A. Siegel)
writes:
>How can I get a c-shell script to pass multi-line terminal input as a 
>single argument to a program?

By using an sh script instead.

>... I tried: ... -y"`cat`" ...

Works fine with sh; but csh has serious problems with newlines, and
converts them to spaces instead.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list