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 24684
- From: Clint Adams <clint@xxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: Bug#369305: zsh: failed to write history file /home/sven/.zsh-history: no such file or directory
- Date: Wed, 5 Mar 2008 15:29:36 -0500
- Cc: zsh-workers@xxxxxxxxxx, Sven Joachim <svenjoac@xxxxxx>, 369305@xxxxxxxxxxxxxxx
- In-reply-to: <200803051712.m25HCNk6006441@xxxxxxxxxxxxxx>
- Mail-followup-to: Peter Stephenson <pws@xxxxxxx>, zsh-workers@xxxxxxxxxx, Sven Joachim <svenjoac@xxxxxx>, 369305@xxxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <87ir01bb68.fsf@xxxxxx> <20080305144438.GA9541@xxxxxxxxxxx> <200803051712.m25HCNk6006441@xxxxxxxxxxxxxx>
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