瀏覽代碼

added missing \n

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53521 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 12 年之前
父節點
當前提交
0d048d1a43
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      lib/init/grass.py

+ 8 - 8
lib/init/grass.py

@@ -859,14 +859,14 @@ def csh_startup():
     try_remove(tcshrc)
     try_remove(tcshrc)
     
     
     f = open(cshrc, 'w')
     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
     path = os.path.join(userhome, ".grass.cshrc") # left for backward compatibility
     if os.access(path, os.R_OK):
     if os.access(path, os.R_OK):
@@ -886,7 +886,7 @@ def csh_startup():
                     f.write(l)
                     f.write(l)
     
     
     path = os.getenv('PATH').split(':')
     path = os.getenv('PATH').split(':')
-    f.write("set path = ( %s ) " % ' '.join(path))
+    f.write("set path = ( %s ) \n" % ' '.join(path))
     
     
     f.close()
     f.close()
     writefile(tcshrc, readfile(cshrc))
     writefile(tcshrc, readfile(cshrc))