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
- X-seq: zsh-workers 24683
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx, Sven Joachim <svenjoac@xxxxxx>, 369305-forwarded@xxxxxxxxxxxxxxx
- Subject: Re: Bug#369305: zsh: failed to write history file /home/sven/.zsh-history: no such file or directory
- Date: Wed, 05 Mar 2008 17:12:23 +0000
- In-reply-to: <20080305144438.GA9541@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <87ir01bb68.fsf@xxxxxx> <20080305144438.GA9541@xxxxxxxxxxx>
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