场景:我找到了很棒的 Console2 http://sourceforge.net/projects/console/并着手为其创建三个环境:Cygwin、原始 Windows 和 GnuWin32。前两个工作正常,但第三个非常困难。
我将此文件作为 cmdrc.bat 保存在我的用户目录中,并告诉控制台这是我的 GnuWin32 选项卡的外壳。
set PATH="C:\gnuwin32\bin;C:\gnuwin32\include\glibc;%PATH%"
echo %PATH%
cmd
help
ls
通过打开命令提示符并粘贴该代码(因此窗口不会消失),我得到:
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.
我的 中是否有无效的语法set
,或者什么?