[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

history vs. poweroff

From: 積丹尼 Dan Jacobson
Subject: history vs. poweroff
Date: Tue, 31 Jan 2017 10:13:46 +0800

Man page says:
 When a shell with history enabled exits...


 The shell exits by default upon receipt of a SIGHUP...

However on slower systems, at the end of the day when the user issues
the poweroff(8) command, all this might not complete, resulting in the
entire day's of history getting thrown away.

So perhaps on the man page add a word of caution.

I even had to write a batch(1) script to stop (killall -1) my shells,
then X-Windows, then finally poweroff. (a simple nohup script wasn't

(But doing export PROMPT_COMMAND='history -a' is overkill).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]