zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Peter Stephenson <pws@csr.com>,
	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 14:41:58 -0800	[thread overview]
Message-ID: <20080305224158.GB9620@herod.dreamhost.com> (raw)
In-Reply-To: <20080305202936.GA24616@scowler.net>

On Wed, Mar 05, 2008 at 03:29:36PM -0500, Clint Adams wrote:
> As Sven notes, any history added before exiting will make it into the
> history file despite the error message.

The history being added is the appending going on due to SHARE_HISTORY.
The error is referring to the inability to rewrite the history file on
exit, and it is actually failing (because the write-new, then rename
steps would cause the file to change ownership).  If incremental history
updating was not happening, the failed rewrite would indeed not save
anything new.  The "no such file or directory" error string is
presumably a left-over errno that Peter noticed.

Aside:  I like to make sure to never mix user history and root history,
so I define a different HISTFILE for root (e.g. .zhist_$USER).

..wayne..


  reply	other threads:[~2008-03-05 22:42 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
2008-03-05 22:41       ` Wayne Davison [this message]
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=20080305224158.GB9620@herod.dreamhost.com \
    --to=wayned@users.sourceforge.net \
    --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).