Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Unterminated command truncates history file



Hello,

I have been searching for a way to resolve an issue in which issuing a SIGINT via Ctrl-C to a "dquote> " prompt after an unterminated command results in the history file being truncated, removing all but the first line of the history file.

For example, following the command
echo "Hello
with a Ctrl-C at the "dquote> " prompt will cause the history file to be truncated.

For context, I have the options "incappendhistory" and "extendedhistory" set

Is there a way to avoid this behavior?


Messages sorted by: Reverse Date, Date, Thread, Author