Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!ucivax!ucla-cs!twinsun!eggert From: eggert@walrus.twinsun.com (Paul Eggert) Newsgroups: news.software.b Subject: Re: spurious newlines from cnews newsrun Message-ID: <1990Jul25.012912.5927@twinsun.com> Date: 25 Jul 90 01:29:12 GMT References: <1990Jul23.152014.12332@maytag.waterloo.edu> <1990Jul24.180609.26204@zoo.toronto.edu> Sender: usenet@twinsun.com Organization: Twin Sun, Inc Lines: 28 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? While I'm on the subject, the following change to newsrun saves two processes on the remote site, and fixes a comment that isn't quite right. *** old/newsrun Thu May 17 15:57:40 1990 --- new/newsrun Tue Jul 24 18:18:52 1990 *************** *** 114,121 **** then relaynews -r -n <$text else ! # N.B.: rsh always returns exit status 0! ! rsh $server /bin/sh -c "PATH=$PATH relaynews -r -n" <$text fi st=$? if test $st -ne 0 --- 114,121 ---- then relaynews -r -n <$text else ! # N.B.: rsh does not yield relaynews's status! ! rsh $server exec /bin/sh -c "PATH=$PATH; export PATH; exec relaynews -r -n" <$text fi st=$? if test $st -ne 0