URL:
  <https://savannah.gnu.org/bugs/?68122>

                 Summary: history is not saved on terminal close
                   Group: The GNU Bourne-Again SHell
               Submitter: bam80
               Submitted: Чт 05 мар 2026 16:52:28
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Чт 05 мар 2026 16:52:28   By: Andrey <bam80>
From the doc:
"When a shell with history enabled exits, bash copies the last $HISTSIZE
entries from the history list to $HISTFILE."

This doesn't happen if bash exits due terminal app close instead of direct
logout from within the shell, which is unexpected and perceived as a bug, as
e.g. the history is lost on reboot.

Workaround:
trap 'history -a' EXIT







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68122>

_______________________________________________
Сообщение отправлено по Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to