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

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@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


  reply	other threads:[~2008-03-05 17:12 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 [this message]
2008-03-05 20:29     ` Clint Adams
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=200803051712.m25HCNk6006441@news01.csr.com \
    --to=pws@csr.com \
    --cc=369305-forwarded@bugs.debian.org \
    --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).