delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/03/19:56:35

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Too many parameters
Date: Sat, 04 Mar 2000 23:11:37 +0000
Organization: Customer of Planet Online
Lines: 68
Message-ID: <sd23cscio37l1qnengubmoeofn9ih1ltve@4ax.com>
References: <008e01bf82b1$ac2fcfa0$9d0f3acb AT 1> <Pine DOT SUN DOT 3 DOT 91 DOT 1000301120904 DOT 12637H-100000 AT is>
NNTP-Posting-Host: modem-46.plutonium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 952125655 25077 62.136.66.174 (3 Mar 2000 23:20:55 GMT)
NNTP-Posting-Date: 3 Mar 2000 23:20:55 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

[posted to comp.os.msdos.djgpp and mailed to the OP]

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> 
> On Tue, 29 Feb 2000, Al wrote:
> 
> > I've had DJGPP installed on my machine for some time now, and just
> > recently I've been getting this message "Too many parameters" when the =
> > batch file is executed.

> I'm guessing that the value of PATH before the batch file is called
> includes some directory with embedded blanks.  This makes the SET
> command choke, because it doesn't expect more than a single parameter
> after the equals sign.
> 
> One way to solve this is to replace the directory with the blanks with
> its short 8+3 alias.  As another solution, try using the PATH command:
> 
>     PATH Z:\DJGPP\BIN;%PATH%

Quotes seem to be required if there are spaces in the path:

C:\>set path=c:\program files
Too many parameters

C:\>path c:\program files
Too many parameters

C:\>set path="c:\program files"
or:
C:\>path "c:\program files"

C:\>echo %path%
C:\PROGRA~1

See how the directory is converted to its SFN equivalent.  It is
difficult to see how spaces could get into the path in the first
place.  Other environment variables are handled ok though, so I think
SET PATH must be given special treatment by the shell.

C:\>set test=c:\program files

C:\>echo %test%
c:\program files

This is with W95, other versions are likely to be broken differently!

> > I have also not modified DJGPP, or any of the contents of the DIR and =
> > SUBs.
> 
> If my guess is right, this has nothing to do with DJGPP.

Maybe another application has been installed recently and this has
added to the PATH variable, best to check autoexec.bat

Al, You could also try asking this in alt.msdos.batch


It looks like the mail gateway to the list does not propogate messages
to the newsgroup except for posts by subscribers to the list.  

This makes it difficult to reply via mail to the OP, who would
probably need a mail reply since they do not follow the group.  It
also means that requests for help will not be seen by the group until
someone replies (to the list) and quotes the original article.

Is that a correct observation and is this the intended behaviour of
the gateway?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019