zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk, Sven Joachim <svenjoac@gmx.de>,
	369305@bugs.debian.org
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	[thread overview]
Message-ID: <20080305202936.GA24616@scowler.net> (raw)
In-Reply-To: <200803051712.m25HCNk6006441@news01.csr.com>

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.


  reply	other threads:[~2008-03-05 20:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87ir01bb68.fsf@gmx.de>
2008-03-05 14:44 ` Clint Adams
2008-03-05 17:12   ` Peter Stephenson
2008-03-05 20:29     ` Clint Adams [this message]
2008-03-05 22:41       ` Wayne Davison
2008-03-06 10:19         ` Peter Stephenson
2008-03-06 17:02           ` Wayne Davison
2008-03-06 17:16             ` Wayne Davison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080305202936.GA24616@scowler.net \
    --to=clint@zsh.org \
    --cc=369305@bugs.debian.org \
    --cc=pws@csr.com \
    --cc=svenjoac@gmx.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).