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

Re: Unterminated command truncates history file



It doesn't seem like the issue is resolved by 5.8. Could it be something else?

jching-mos:~% echo $ZSH_VERSION
5.8
jching-mos:~% stat -f %z ~/.zsh_history
2829751
jching-mos:~% echo "Hello
dquote>
jching-mos:~[130]% stat -f %z ~/.zsh_history
66

To add, $HISTFILESIZE and $HISTSIZE are both set to 9223372036854775807 (I want to keep everything :) )

On Tue, Jun 8, 2021 at 1:25 PM Jonathan Ching <jon48c@xxxxxxxxx> wrote:
Ah, I see, thank you! I will give 5.8 a try

On Tue, Jun 8, 2021 at 1:14 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
On Tue, Jun 8, 2021 at 12:48 PM Jonathan Ching <jon48c@xxxxxxxxx> wrote:
>
> 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.

I believe this is fixed by the patch in workers/44067


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