pythonrc icon indicating copy to clipboard operation
pythonrc copied to clipboard

redline.append_history fails on macOS

Open DNSGeek opened this issue 5 months ago • 0 comments

The built in libreadline on macOS does not have append_history, causing the writing of the history file to fail on exit. I tried to submit a PR but did not have permission. Here is my change:

line 373

              # Check for missing append_history. Will fail on macOS
              if "append_history" not in dir(readline):
                  readline.write_history_file(config.HISTFILE)
                  return

DNSGeek avatar Aug 16 '25 22:08 DNSGeek