[GRASS-SVN] r52926 - grass/trunk/mswindows/osgeo4w

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Aug 26 06:03:30 PDT 2012


Author: mmetz
Date: 2012-08-26 06:03:30 -0700 (Sun, 26 Aug 2012)
New Revision: 52926

Modified:
   grass/trunk/mswindows/osgeo4w/msys.bat
Log:
wingrass, msys.bat: 2009.03.17 Keith Marshall: start in --norxvt mode by default

Modified: grass/trunk/mswindows/osgeo4w/msys.bat
===================================================================
--- grass/trunk/mswindows/osgeo4w/msys.bat	2012-08-26 12:54:49 UTC (rev 52925)
+++ grass/trunk/mswindows/osgeo4w/msys.bat	2012-08-26 13:03:30 UTC (rev 52926)
@@ -56,11 +56,16 @@
 )
 
 rem ember Set up option to use rxvt based on value of %1
-if "x%MSYSCON%" == "x" set MSYSCON=rxvt.exe
+set MSYSCON=unknown
 if "x%1" == "x-norxvt" set MSYSCON=sh.exe
 if "x%1" == "x--norxvt" set MSYSCON=sh.exe
-if "x%MSYSCON%" == "xsh.exe" shift
+if "x%1" == "x-rxvt" set MSYSCON=rxvt.exe
+if "x%1" == "x--rxvt" set MSYSCON=rxvt.exe
+if NOT "x%MSYSCON%" == "xunknown" shift
 
+if "x%MSYSCON%" == "xunknown" set MSYSCON=sh.exe
+
+rem the default is a MSYS (user), not a MINGW (developer) console
 if "x%MSYSTEM%" == "x" set MSYSTEM=MINGW32
 if "%1" == "MINGW32" set MSYSTEM=MINGW32
 if "%1" == "MSYS" set MSYSTEM=MSYS
@@ -101,7 +106,8 @@
 
 :startsh
 if NOT EXIST "%WD%sh.exe" goto notfound
-start "MSYS 1.0" "%WD%sh" --login -i
+if "x%*" == "x" start "MSYS 1.0" "%WD%sh" --login -i
+if NOT "x%*" == "x" start "MSYS 1.0" "%WD%sh" --login -c "%*"
 exit
 
 :EOF



More information about the grass-commit mailing list