add readline.append_history_file (closes #22940)

patch by "bru"