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



Clint Adams wrote:
> On Wed, Mar 05, 2008 at 01:35:59PM +0100, Sven Joachim wrote:
> > I'm noticing the odd message in the subject when exiting from "sudo zsh".
> > However, the file ~/.zsh_history is actually updated anyway.  And despite
> > the claims in bug #347444, its ownership is not changed, fortunately.
> 
> That error message is indeed misleading.

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.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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