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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 22 00:19:34 PDT 2012


Author: neteler
Date: 2012-10-22 00:19:33 -0700 (Mon, 22 Oct 2012)
New Revision: 53521

Modified:
   grass/trunk/lib/init/grass.py
Log:
added missing \n

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2012-10-21 18:12:24 UTC (rev 53520)
+++ grass/trunk/lib/init/grass.py	2012-10-22 07:19:33 UTC (rev 53521)
@@ -859,14 +859,14 @@
     try_remove(tcshrc)
     
     f = open(cshrc, 'w')
-    f.write("set home = %s" % userhome)
-    f.write("set history = 3000 savehist = 3000  noclobber ignoreeof")
-    f.write("set histfile = %s" % os.path.join(os.getenv('HOME'), ".history"))
+    f.write("set home = %s\n" % userhome)
+    f.write("set history = 3000 savehist = 3000  noclobber ignoreeof\n")
+    f.write("set histfile = %s\n" % os.path.join(os.getenv('HOME'), ".history"))
     
-    f.write("set prompt = '\\")
-    f.write("Mapset <%s> in Location <%s> \\" % (mapset, location_name))
-    f.write("GRASS %s > '" % grass_version)
-    f.write("set BOGUS=``;unset BOGUS")
+    f.write("set prompt = '\\\n")
+    f.write("Mapset <%s> in Location <%s> \\\n" % (mapset, location_name))
+    f.write("GRASS %s > '\n" % grass_version)
+    f.write("set BOGUS=``;unset BOGUS\n")
     
     path = os.path.join(userhome, ".grass.cshrc") # left for backward compatibility
     if os.access(path, os.R_OK):
@@ -886,7 +886,7 @@
                     f.write(l)
     
     path = os.getenv('PATH').split(':')
-    f.write("set path = ( %s ) " % ' '.join(path))
+    f.write("set path = ( %s ) \n" % ' '.join(path))
     
     f.close()
     writefile(tcshrc, readfile(cshrc))



More information about the grass-commit mailing list