Browse Source

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 years ago
parent
commit
a6f8e1a2ee
1 changed files with 1 additions and 1 deletions
  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"