0

Scenario: I found the awesome Console2 http://sourceforge.net/projects/console/ and set about making three environments for it: Cygwin, raw Windows, and GnuWin32. The first two work fine, but the third is being very difficult.

I saved this file as cmdrc.bat in my user directory and told Console it was my GnuWin32 tab's shell.

set PATH="C:\gnuwin32\bin;C:\gnuwin32\include\glibc;%PATH%"
echo %PATH%
cmd
help
ls

By opening Command Prompt and pasting that code (so the window doesn't disappear), I get:

C:\Users\Chris>set PATH="C:\gnuwin32\bin;C:\gnuwin32\include\glibc;%PATH%"

C:\Users\Chris>echo %PATH%
"C:\gnuwin32\bin;C:\gnuwin32\include\glibc;[all the correct stuff that was there before]"

C:\Users\Chris>cmd
'cmd' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Chris>help
'help' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Chris>ls // GnuWin32 isn't available, either.
'ls' is not recognized as an internal or external command,
operable program or batch file.

Do I have invalid syntax in my set, or what?

Grault
  • 974
  • 12
  • 31
  • Also, You may try [ConEmu](http://stackoverflow.com/a/10904494/1405560). See http://superuser.com/questions/tagged/conemu – Maximus Sep 17 '12 at 06:18

1 Answers1

1

Remove the double quotes from the PATH definition.

set PATH=C:\gnuwin32\bin;C:\gnuwin32\include\glibc;%PATH%
Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328
  • >.< I had gone to do something else and this occurred to me. Since then I've been kicking myself for not thinking of that earlier. Thanks for the help. :) – Grault Sep 16 '12 at 23:24