v.20.8Improvement

Fix readline to save command history to file

Fix readline so it dumps history to file now. #13600 (Amos Bird).
Fix the ClickHouse CLI readline functionality to properly save command history to a file.

Why it matters

This fix addresses an issue where the command history was not being saved to a file after using the ClickHouse command-line interface. By ensuring the history is dumped correctly, users can retain their command history across sessions, improving usability and efficiency in repetitive tasks.

How to use it

Once updated to the fixed version, users will automatically have their command history saved to the default history file when using the ClickHouse CLI. No additional configuration is necessary.