From: <otm...@us...> - 2008-09-08 14:41:44
|
Revision: 5302 http://jython.svn.sourceforge.net/jython/?rev=5302&view=rev Author: otmarhumbel Date: 2008-09-08 14:41:41 +0000 (Mon, 08 Sep 2008) Log Message: ----------- Fix for issue #1123: Weird "unexpected at this time" error. The tests if environment variables JAVA_HOME or JYTHON_HOME are set did not work: - if the path contained a space - if the variable really was not set The passed (manual, so far) tests can be found in: http://bugs.jython.org/msg3489 Modified Paths: -------------- trunk/jython/src/shell/jython.bat Modified: trunk/jython/src/shell/jython.bat =================================================================== --- trunk/jython/src/shell/jython.bat 2008-09-07 05:57:26 UTC (rev 5301) +++ trunk/jython/src/shell/jython.bat 2008-09-08 14:41:41 UTC (rev 5302) @@ -17,12 +17,12 @@ rem ----- Verify and set required environment variables ----------------------- set _JAVA_CMD=java -if not "%JAVA_HOME%" == "" ( +if not [%JAVA_HOME%] == [] ( set _JAVA_CMD="%JAVA_HOME:"=%\bin\java" ) set _JYTHON_HOME=%JYTHON_HOME% -if not "%JYTHON_HOME%" == "" goto gotHome +if not [%JYTHON_HOME%] == [] goto gotHome pushd "%~dp0%\.." set _JYTHON_HOME="%CD%" popd @@ -84,7 +84,7 @@ if ["%_CMP%"] == ["--"] goto argsDone if ["%_CMP%"] == ["--jdb"] ( - if "%JAVA_HOME%" == "" ( + if [%JAVA_HOME%] == [] ( set _JAVA_CMD=jdb ) else ( set _JAVA_CMD="%_JAVA_HOME:"=%\bin\jdb" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |