Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#369305: zsh: failed to write history file /home/sven/.zsh-history: no such file or directory



On Wed, Mar 05, 2008 at 05:12:23PM +0000, Peter Stephenson wrote:
> You haven't said how to reproduce this (all I've seen is above), but
> there are now lots tests in savehistfile() in hist.c for failure to
> write and one of them is being overzealous.  Possibly ret is being set
> to -1 without errno being set by the corresponding call, but it sounds
> like there's more to it than that.  This should be easy enough to track
> down if you can get it to happen.

With extendedhistory and sharehistory on (I haven't tried anything
else), do a 'sudo -s' or 'sudo zsh', then exit the shell.

As Sven notes, any history added before exiting will make it into the
history file despite the error message.



Messages sorted by: Reverse Date, Date, Thread, Author