From: AITGW::"imhw400@INDYVAX.IUPUI.EDU" 4-JAN-1992 09:04:38.87 To: Multiple recipients of list ANU-NEWS CC: Subj: NNTP_XMIT VMS-style command is not fully VMS-style Received: by AITGW.DECnet (utk-mail11 v1.5) ; Sat, 4 Jan 92 09:01:36 EST Received: from vm1.NoDak.edu by aitgw.ge.com (5.65/GE Gateway 1.4) id AA05773; Sat, 4 Jan 92 09:01:29 -0500 Message-Id: <9201041401.AA05773@aitgw.ge.com> Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP V2R2) with BSMTP id 8981; Sat, 04 Jan 92 08:01:33 CST Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id 3875; Sat, 04 Jan 92 08:01:31 CST Date: Fri, 3 Jan 1992 12:29:23 -0500 Reply-To: imhw400@INDYVAX.IUPUI.EDU Sender: ANU-NEWS Discussion From: imhw400@INDYVAX.IUPUI.EDU Subject: NNTP_XMIT VMS-style command is not fully VMS-style To: Multiple recipients of list ANU-NEWS I'm running 6.0.3. On page 159 of _ANU NEWS Version V6.0, 12 October 1990_, it says "the [NNTP_XMIT] command parameters may be specified using a conventional VMS qualifier syntax", but that is not quite correct. When NNTP_XMIT detects the presence of VMS-style qualifiers, it assumes that argv[1] points to the entire string of qualifiers. A VMS command, however, allows whitespace between qualifiers, as in: $ NNTP_XMIT - /NODE=FOO.BAR.EDU - /PROTOCOL=TCP - /IDFILE=[.IHAVE_FOO_BAR_EDU]COLLECT.IDS - /INDEXID which will be parsed into multiple arguments by the C startup code. I've patched NNTP_XMIT to concatenate the strings located by argv[1] through argv[argc-1] when forming the command fed to CLI$DCL_PARSE. Here's the VMS DIFFERENCES: ************ File DISK$SYSTEM2:[ANU-NEWS.NEWS_SRC]NNTP_XMIT.C;36 959 register int argindex; 960 961 strcpy(mcommand,"INVOKENNTP"); 962 for (argindex = 1; argindex < argc; argindex++ ) 963 { 964 strcat(mcommand," "); 965 strcat(mcommand,argv[argindex]); 966 } 967 if (!(cli$dcl_parse(c$dsc(mcommand),&nntpxmitcmd,0,0,0) & 1)) exit(1 ); ****** File DISK$SYSTEM2:[ANU-NEWS.NEWS_SRC]NNTP_XMIT.C;33 959 960 strcpy(mcommand,"INVOKENNTP "); 961 strcat(mcommand,argv[1]); 962 if (!(cli$dcl_parse(c$dsc(mcommand),&nntpxmitcmd,0,0,0) & 1)) exit(1 ); ************ Number of difference sections found: 1 Number of difference records found: 8 DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=DISK$USER3:[IMHW400.MISC]NNTP_XMIT.DIFF;1 - DISK$SYSTEM2:[ANU-NEWS.NEWS_SRC]NNTP_XMIT.C;36- DISK$SYSTEM2:[ANU-NEWS.NEWS_SRC]NNTP_XMIT.C;33 The blanks are not really needed today, but I put them in for completeness before I noticed, and they would be needed if NNTP_XMIT were modified to accept parameters as well as qualifiers. -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Mark H. Wood, Lead Analyst/Programmer +1 317 274 0749 [@disclaimer@] Internet: IMHW400@INDYVAX.IUPUI.EDU BITNET: IMHW400@INDYVAX