On 09.09.24 17:02, Chet Ramey wrote:
This doesn't seem like the whole story. You probably have PROMPT_COMMAND
set to append the history at every command (otherwise, the temp file would
not `reappear' after some time).
My PROMPT_COMMAND is the following:
PROMPT_COMMAND=([0]="printf \"\\033]0;%s@%s:%s\\007\" \"\${USER}\"
\"\${HOSTNAME%%.*}\" \"\${PWD/#\$HOME/\\~}\"")
This is default value in Arch Linux.
Also my PS1 is
PS1='[\u@\h \W]\$ '
Let me know if any additional information required.
It looks like one of the writes or renames fails, so the history library
leaves the temp file there in case it needs to be manually modified, but
a subsequent write succeeds, updating the `real' history file.
--
With best regards,
Dmytro Bagrii