Re: history vs. poweroff

2017-01-31 Thread Hankins, Jonathan
This is discussed a bit here, along with a common pain point for tmux/screen users: https://news.ycombinator.com/item?id=10164053 zsh gets around both issues with a variety of options to have a synchronous and interleaved history file. -Jonathan Hankins On Tue, Jan 31, 2017 at 1:40 PM Greg Wool

Re: history vs. poweroff

2017-01-31 Thread 積丹尼 Dan Jacobson
GW> Log out, log back in as root, issue the command, and accept that root's GW> (very short) shell history will be lost. Well mention that on the man page. I.e., the man page should address the paradox of saving a complete history vs. being able to turn off one's computer.

Re: history vs. poweroff

2017-01-31 Thread Greg Wooledge
On Wed, Feb 01, 2017 at 03:31:57AM +0800, ? Dan Jacobson wrote: > GW> Log out, log back in as root, issue the command, and accept that root's > GW> (very short) shell history will be lost. > > Well mention that on the man page. > I.e., the man page should address the paradox of saving a co

Re: history vs. poweroff

2017-01-31 Thread Greg Wooledge
On Wed, Feb 01, 2017 at 03:13:45AM +0800, ? Dan Jacobson wrote: > GW> I'm confused. You don't logout before shutting down your computer? > GW> I would strongly recommend doing so, unless it's an emergency. > > All I know is I want to issue one command to turn off the computer. > If I logg

Re: history vs. poweroff

2017-01-31 Thread 積丹尼 Dan Jacobson
GW> I'm confused. You don't logout before shutting down your computer? GW> I would strongly recommend doing so, unless it's an emergency. All I know is I want to issue one command to turn off the computer. If I logged off first, how could I issue that (poweroff(8)) command? OK you people turn of

Re: history vs. poweroff

2017-01-31 Thread Greg Wooledge
On Tue, Jan 31, 2017 at 10:13:46AM +0800, ? Dan Jacobson wrote: > 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. I'm confused. You don't logout be

history vs. poweroff

2017-01-30 Thread 積丹尼 Dan Jacobson
Man page says: When a shell with history enabled exits... and 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 thr