7/26/2026 at 11:04:42 AM
As indicated in https://tangled.org/oppi.li/stinkpot/blob/cdf87ffcd36e96f3d4... , this software (stinkpot) still uses Bash PROMPT_COMMAND as an entry point to copy new shell history entries to its database.PROMPT_COMMAND has the following flaw: a command gets recorded as soon as it has finished. So command which never finish (e.g. because they run for a long time, and the user closes the terminal window, or reboots the system) never get recorded. Another flaw: the users starts a long-running command in terminal window 1, and immediately they want to start a variant of it in terminal window 2, but it's not available in the history.
by ptspts
7/26/2026 at 5:25:01 PM
What would be a better entry point? I honestly thought there would some hook for saving history specificallyby superb_dev
7/26/2026 at 7:05:09 PM
Modify bash?by inigyou