瀏覽代碼

lib/init: set bash HISTSIZE to empty string for unlimited (#1526)

Value "-1" only works for bash 4.3 and later, whereas e.g. built-in bash on
macOS is frozen at  3.2.57.
nilason 3 年之前
父節點
當前提交
a6f8e1a2ee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -1930,7 +1930,7 @@ def sh_like_startup(location, location_name, grass_env_file, sh):
     """Start Bash or Z shell (but not sh (Bourne Shell))"""
     if sh == "bash":
         # set bash history to record an unlimited command history
-        sh_history_limit = "-1"  # unlimited
+        sh_history_limit = ""  # unlimited
         os.environ["HISTSIZE"] = sh_history_limit
         os.environ["HISTFILESIZE"] = sh_history_limit
         sh_history = ".bash_history"