[GRASS-SVN] r55856 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 17 09:55:58 PDT 2013


Author: martinl
Date: 2013-04-17 09:55:58 -0700 (Wed, 17 Apr 2013)
New Revision: 55856

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: print warning when shell is not recognized.


Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2013-04-17 15:48:58 UTC (rev 55855)
+++ grass/trunk/lib/init/grass.py	2013-04-17 16:55:58 UTC (rev 55856)
@@ -787,7 +787,10 @@
         grass_env_file = os.path.join(grass_config_dir, 'cshrc')
     elif sh in ['bash', 'msh', 'cygwin']:
         grass_env_file = os.path.join(grass_config_dir, 'bashrc')
-    
+    else:
+        grass_env_file = os.path.join(grass_config_dir, 'bashrc')
+        warning(_("Unsupported shell <%s>: %s") % (sh, grass_env_file))
+              
     # check for SHELL
     if not os.getenv('SHELL'):
         fatal(_("The SHELL variable is not set"))



More information about the grass-commit mailing list