delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/05/07:58:01

From: abloch AT ix DOT netcom DOT com (Andrew Bloch)
Subject: B19: (95) Bug in Cygnus.bat causing "Too many parameters" error
5 Apr 1998 07:58:01 -0700 :
Message-ID: <3528574f.21203493.cygnus.gnu-win32@smtp.ix.netcom.com>
Reply-To: abloch AT ix DOT netcom DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

There is a bug in Cygnus.bat which will prevent bash from running and cause
the following errors, if you have a file name with a space already in your
path variable:

   Too many parameters
   Bad command or file name

Bash will not run, because the SET PATH command failed to change the path
to point to its directory.

The quick fix is to add quotes in the SET PATH= command line.  Change
SET PATH=C:\CYGNUS\B19\H-I386~1\bin;%PATH%
to
SET PATH="C:\CYGNUS\B19\H-I386~1\bin;%PATH%"

[Note that your directory may be different if you installed in a different
directoy.]

It would probably be better for the user to edit her path so that it
contains no spaces to avoid problems in the future.  At warning suggesting
that might be helpful if Cygnus.bat detects a space in PATH.

Andy Bloch

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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