Newsgroups: news.software.b
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: spurious newlines from cnews newsrun
Message-ID: <1990Jul25.131934.23342@zoo.toronto.edu>
Organization: U of Toronto Zoology
References: <VIXIE.90Jul23015920@volition.pa.dec.com> <1990Jul23.152014.12332@maytag.waterloo.edu> <1990Jul24.180609.26204@zoo.toronto.edu> <1990Jul25.012912.5927@twinsun.com>
Date: Wed, 25 Jul 90 13:19:34 GMT

In article <1990Jul25.012912.5927@twinsun.com> eggert@walrus.twinsun.com (Paul Eggert) writes:
>Is it possible that the spurious newlines arise because newsrun invokes rsh,
>the login shell on the remote site is the C shell, and the remote .cshrc
>contains a command that outputs newlines?

It's conceivable, although somebody else will have to find out for sure,
since we are totally ignorant of the C shell and have no intention of
changing that.

>! 			rsh $server /bin/sh -c "PATH=$PATH relaynews -r -n" <$text
>--- 114,121 ----
>! 			rsh $server exec /bin/sh -c "PATH=$PATH; export PATH; exec relaynews -r -n" <$text

Hmmm...  The second exec is a fairly good idea.  The first one depends on
whatever whacko default shell is on the other end having "exec", and I'm
a bit less sure about that.
-- 
NFS:  all the nice semantics of MSDOS, | Henry Spencer at U of Toronto Zoology
and its performance and security too.  |  henry@zoo.toronto.edu   utzoo!henry
