With the solution in [1] it is possible to write the command to bash_history, after the command has finished, with multiple terminals.
That means, if the command is issued and if something happens during the time the command runs, it is not appended to history.
Is it possible to append a command to bash_history immediately after hitting enter before the command finishes?
DEBUG
trap – muru Apr 10 '20 at 08:30