Use string interpolation for .history command; rename out variable to history an store the history in it as an array in the proper order so that printing it is just a join operation
Pop off partial line if input history file was truncated; make maximum input history file size configurable via repl start options