On Sun, Jan 14, 2018 at 06:24:27PM +0100, Felipe Salvador wrote: > On Sun, Jan 14, 2018 at 02:07:01PM +0100, Hans wrote: > > Hi folks, > > > > try this: > > > > 1. login as normal user > > > > 2. become root with "su -" > > > > 3. delete history with "history -c" > > Then run "history -w" to "write the current history to the history > file"
Maybe you could fill a bug report in order to ask if it is possible change the history behaviour about -c and -w switches, actually it doesn't accept this combination, you cannot use $history -c -w or $history -cw You have to run separately $history -c AND $history -w Though I don't think this is a bug. Regards -- Felipe Salvador