Sorry if this is unclear. Try this test:
On a RPi 5, running Bookworm, with a Desktop:
Open a terminal, type 'history'.
Type in a new command.
Shutdown with Shutdown->Shutdown.
Restart.
Open a terminal, type 'history'.
The last command is added to the end of the history , on my setup.
Type in a new command.
Shutdown with a double press to the power button.
Restart.
Open a terminal, type 'history'.
The last command is not added to the end of the history, on my setup.
Suspect (although not tested) the same will occur if sshing to the Pi.
Is it the same 'new command' that you are issuing?
I can't give you chapter and verse but I have a feeling that history-logging suppresses duplicates?
Statistics: Posted by B.Goode — Thu May 16, 2024 6:31 pm