Thread View: news.software.readers
4 messages
4 total messages
Started by Erik Oliver
Wed, 28 Jul 1993 18:37
trn 3.1 : compilation problems, and Pnews problem
Author: Erik Oliver
Date: Wed, 28 Jul 1993 18:37
Date: Wed, 28 Jul 1993 18:37
32 lines
1948 bytes
1948 bytes
SETUP: NeXT running NS3.0
Had used trn 3.0 without any problems and had compiled w/o complaint.
Downloaded trn 3.1 from ftp.uu.net, during compilation the compiler
complains and complains that bzero, bcopy, and bcmp are being redefined,
I think this is just a silly error in the config script which I fixed by
bracketing the header w/ those macros w/ #ifndef NeXT.
Also, the standard header location of Nexts is /NextDevelopers/Headers.
Relating to the problem at hand, the Pnews w/ trn 3.1 seems to be having
problems specifically it complains about too many arguments to test, I
ran Pnews inside sh -v to get the following:
if $test ! -f $newsgroups -a -x $rnlib/getactive; then
newsgroups="$tmp/Pnng.$$";
rmlist="$newsgroups";
cmdlist="$rnlib/getactive newsgroups $tmp/Pnng.$$ ; ";
fi
test: too many arguments
if $test ! -f $active -a -x $rnlib/getactive; then
active="$tmp/Pnact.$$";
rmlist="$rmlist $active";
cmdlist="$cmdlist $rnlib/getactive active $tmp/Pnact.$$";
fi
test: too many arguments
Aside from that everything seems to work fine.
-Erik
--
Erik Oliver eoliver@haverford.edu
(DISCLAIMER: Opinions expressed are mine and not the college's.)
Re: trn 3.1 : compilation problems, and Pnews problem
Author: Mike Iglesias
Date: Wed, 28 Jul 1993 21:37
Date: Wed, 28 Jul 1993 21:37
24 lines
1669 bytes
1669 bytes
In article <236h1a$qt5@venus.haverford.edu>, Erik Oliver <eoliver@ralph.cs.haverford.edu> wrote: >Relating to the problem at hand, the Pnews w/ trn 3.1 seems to be having >problems specifically it complains about too many arguments to test, I >ran Pnews inside sh -v to get the following: > >if $test ! -f $newsgroups -a -x $rnlib/getactive; then > newsgroups="$tmp/Pnng.$$"; > rmlist="$newsgroups"; > cmdlist="$rnlib/getactive newsgroups $tmp/Pnng.$$ ; "; >fi >test: too many arguments I fixed this on our DEC RISC Ultrix systems by putting the arguments to test in double quotes: if $test "! -f $newsgroups -a -x $rnlib/getactive"; then Mike Iglesias Internet: iglesias@draco.acs.uci.edu University of California, Irvine BITNET: iglesias@uci Office of Academic Computing uucp: ...!ucbvax!ucivax!iglesias Distributed Computing Support phone: (714) 856-6926
trn 3.1 : compilation problems, and Pnews problem
Author: Chris Lewis
Date: Sun, 01 Aug 1993 05:55
Date: Sun, 01 Aug 1993 05:55
43 lines
2603 bytes
2603 bytes
In article <23bfsp$p3f@pirates.cs.swt.edu> peng@pirates (Wuxu Peng) writes: >Chris Lewis (clewis@ferret.ocunix.on.ca) wrote: >: Ultrix /bin/sh doesn't support -x. The conjecture I've been using is >: that V32's /bin/sh didn't support it, and several of its direct >: descendants (BSD 4.1 and 4.2 I think) had the same sh. > I had the same problem before -- every time I post, the >message: > test: argument expected > test: argument expected >would show up after I typed in the subject and distribution fields. >The problem was solved by putting a pair of quotes in two >test statement in Pnews, as suggested by a netter in this thread. If you have a shell where -x isn't supported, and it is NOT supported on Ultrix /bin/sh, no amount of quoting is going to make any difference, yet the result may *appear* to work because it doesn't give you an error message and accidentally takes the right action. But may goof up next time. If these were the fixes I remember seeing floating by, they were wrong and the netter agreed when someone pointed it out to him. > Another minor problem is that after typing "f", the system >will ask "Are you starting an unrelated topic? [ynq]". If >I type return at this prompt, a letter "^J" will show up: >Are you starting an unrelated topic? [ynq] ^J > I have to type return the second time. /bin/sh5 does not >solve the above problem. This is minor but annoying. >It appears that the cbreak mode doesn't work at that moment. >Any hints? This may be some sort of Configure confusion. Try rerunning Configure itself with /bin/sh5. -- Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541 Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca Ferret list: ferret-request@ferret.ocunix.on.ca
Re: trn 3.1 : compilation problems, and Pnews problem
Author: Greg Earle
Date: Tue, 03 Aug 1993 09:08
Date: Tue, 03 Aug 1993 09:08
65 lines
3372 bytes
3372 bytes
In article <CAw9A1.2AH@dutiws.twi.tudelft.nl> graaff@dutiws.twi.tudelft.nl (Hans de Graaff) writes:
>In <236h1a$qt5@venus.haverford.edu> Erik Oliver <eoliver@ralph.cs.haverford.edu> wrote:
>>Relating to the problem at hand, the Pnews w/ trn 3.1 seems to be having
>>problems specifically it complains about too many arguments to test. I
>>ran Pnews inside sh -v to get the following:
>>
>>if $test ! -f $newsgroups -a -x $rnlib/getactive; then
> ^^
>I guess you also have a test that doesn't know how to check whether a
>file is executable. I changed both -x's to -r, which fixed the problem.
>
>[ Wayne: you should have got this through Cliff, since I found it with strn ]
Looking at the latest strn (which is based on trn 3.2), it looks like Wayne
succumbed to this "fix":
isolar:2:70 % sed -n '105,116p' Pnews.SH
if $test ! -f "$newsgroups" -a -r "$rnlib/getactive"; then
newsgroups="$tmp/Pnng.$$";
rmlist="$newsgroups";
cmdlist="$rnlib/getactive newsgroups $tmp/Pnng.$$ ; ";
fi
if $test ! -f "$active" -a -r "$rnlib/getactive"; then
active="$tmp/Pnact.$$";
rmlist="$rmlist $active";
cmdlist="$cmdlist $rnlib/getactive active $tmp/Pnact.$$";
fi
I would respectfully like to disagree with this change. The point should be
as Wayne had it originally, i.e. to check and see if the programs - that are
about to be invoked - exist and *are executable*. Just because Ultrix's (and
possibly NeXT's) /bin/sh is brain-damaged and don't support "-x" doesn't mean
that we should all have to suffer! If a "chmod -x $rnlib/getactive" got done
accidentally by some non-benevolent entry, this test would pass and the
command would be run even though it didn't have execute permission, which would
fail.
Can't we put this inside a "uname -s" test? Something like
if [ "`uname -s" = "Ultrix" ]
then
RORX="-r"
else
RORX="-x"
fi
if $test ! -f "$newsgroups" -a $RORX "$rnlib/getactive"; then
newsgroups="$tmp/Pnng.$$";
rmlist="$newsgroups";
cmdlist="$rnlib/getactive newsgroups $tmp/Pnng.$$ ; ";
fi
if $test ! -f "$active" -a $RORX "$rnlib/getactive"; then
active="$tmp/Pnact.$$";
rmlist="$rmlist $active";
cmdlist="$cmdlist $rnlib/getactive active $tmp/Pnact.$$";
fi
.. ??? Or am I missing something?
--
- Greg Earle
Phone: (818) 353-8695 FAX: (818) 353-1877 [Out of order now]
Internet: earle@isolar.Tujunga.CA.US
UUCP: isolar!earle@elroy.JPL.NASA.GOV a.k.a. ...!elroy!isolar!earle
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads