technomancy/leiningen — Issue #331: Current stable lein.bat throw "and was unexpected at this time" error
Author: bitsai
Created: 2011-11-16 23:33:02+00:00
State: open

Executing the current stable lein.bat on Windows XP results in the following error:

"and was unexpected at this time."

I believe the problem lies in line 25:

if /I NOT %CD%==%USERPROFILE% echo Running in bundled mode.

When I added quotes around the CD and USERPROFILE variables, lein.bat works as expected.

if /I NOT "%CD%"=="%USERPROFILE%" echo Running in bundled mode.