Skip to content

Commit

Permalink
lib/init: set bash HISTSIZE to empty string for unlimited (#1526)
Browse files Browse the repository at this point in the history
Value "-1" only works for bash 4.3 and later, whereas e.g. built-in bash on
macOS is frozen at  3.2.57.
  • Loading branch information
nilason committed Oct 6, 2021
1 parent d4d5be9 commit a6f8e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init/grass.py
Expand Up @@ -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"
Expand Down

0 comments on commit a6f8e1a

Please sign in to comment.