Date: Wed, 20 Dec 2000 11:04:22 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Jason Green cc: djgpp AT delorie DOT com Subject: Re: I can't get the rhide command to work In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 19 Dec 2000, Jason Green wrote: > > > This is all good, except there shouldn't be a space after "PATH=", the > > > space will probably stop that command from taking effect. > > > > Actually, the space *after* the equals sign are ignored by > > COMMAND.COM. So this most probably is not the problem. > > Hmm, > > C:\>set PATH= C:\DJGPP\BIN;%PATH% > Too many parameters > > What did I do wrong here? Nothing. The point is that such a space will either produce the above error message, in which case C:\DJGPP\BIN won't be on the PATH (but we saw it was there), or be ignored if the user uses the better alternative for this command: PATH C:\DJGPP\BIN;%PATH% (i.e., without the `set' part and without the equals sign). > > > > Looking at my AUTOEXEC.BAT file from MS-DOS (as opposed to the edit > > > > screen), I noticed it has the line "set > > > > PATH=C:\DJGPP\BIN;C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND" in place > > > > of the line "set PATH=C:\DJGPP\BIN;%PATH%". So even though I typed > > > > the line in right, I think it is having problems with it (though this > > > > may be normal for all I know). > > > > > > I don't think this is normal. > > > > Actually, it _is_ normal. > > That's useful to know. ;-) What is it that causes the line to change? The construct %PATH% is expanded to the previous value of PATH when the shell executes the "set PATH=" command.