zsh-users
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Seth Kurtzberg <seth@cql.com>
Cc: zsh-users@sunsite.dk
Subject: Re: History corruption (over NFS)
Date: Mon, 14 Feb 2005 14:33:52 -0800	[thread overview]
Message-ID: <20050214223352.GA7616@blorf.net> (raw)
In-Reply-To: <421112C4.50002@cql.com>

On Mon, Feb 14, 2005 at 02:06:12PM -0700, Seth Kurtzberg wrote:
> Won't this cause problems in the mode where history is shared, and 
> history is written for every command

Nope -- appended history still appends just fine.  As mentioned, zsh
re-opens the history file for every append, so it matters not if the
file gets rewritten to a new inode.  Also, every append and every
rewrite is locked by using a .zhistory.LOCK file, so multiple shells
don't update the history file at the same time.

> not just once when the shell terminates?

Zsh also periodically rewrites the history file when the number of
appended lines exceeds the SAVEHIST count by a certain percentage.

..wayne..


  reply	other threads:[~2005-02-14 22:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-10 16:54 Vincent Lefevre
2005-02-10 18:41 ` Bart Schaefer
2005-02-10 23:54   ` Vincent Lefevre
2005-02-14 15:56   ` Vincent Lefevre
2005-02-14 16:24     ` Bart Schaefer
2005-02-15  9:50       ` Vincent Lefevre
2005-02-15 16:15         ` Bart Schaefer
2005-02-14 18:57     ` Wayne Davison
2005-02-14 21:06       ` Seth Kurtzberg
2005-02-14 22:33         ` Wayne Davison [this message]
2005-02-15  9:58       ` Vincent Lefevre

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=20050214223352.GA7616@blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=seth@cql.com \
    --cc=zsh-users@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).