zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <Peter.Stephenson@csr.com>
To: <zsh-users@zsh.org>
Subject: Re: locking failed for /home/whoever/.zhistory: no such file or directory
Date: Wed, 13 Jul 2011 15:01:03 +0100	[thread overview]
Message-ID: <20110713150103.2f5c6226@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <ivk7qm$udh$1@dough.gmane.org>

On Wed, 13 Jul 2011 08:50:07 -0500
Cesar Romani <cesar.romani@gmail.com> wrote:
> On 10/07/2011 11:53 a.m., Peter Stephenson wrote:
>  > Cesar Romani wrote:
>  >> I'm using zsh 4.3.12-dev-1
>  >> Whenever I start zsh I always get the following message:
>  >> zsh: locking failed for /home/whoever/.zhistory: no such file or
>  >> directory: reading anyway
>  >
>  > That means a system call to lock the file for reading failed.  It
>  > depends on the file system whether locking is enabled.  So long as you
>  > are not attempting to use the history file with multiple terminals at
>  > once, you shouldn't hit problems.
> 
> But my .zhistory is always empty. Isn't there a workaround for it?
> With zsh 4.3.10 I didn't have that problem.

You did have the problem, but the shell didn't warn you it wasn't going
to be able to manage history safely.

Is there a good reason you need to have the .zhistory file even though
it's empty?  If not, delete it, or if this means you aren't using
history files at all unset HISTFILE in ~/.zshrc.

If there's a good reason to have a valid HISTFILE variable pointing to a
file that's empty, we can add a special case to test for a zero file
before reading, but I can't offhand think of a case why you need this.

-- 
Peter Stephenson <pws@csr.com>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog


  reply	other threads:[~2011-07-13 14:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-10 14:22 Cesar Romani
2011-07-10 16:53 ` Peter Stephenson
2011-07-13 13:50   ` Cesar Romani
2011-07-13 14:01     ` Peter Stephenson [this message]
2011-07-13 14:54       ` Bart Schaefer
2011-07-13 18:53         ` Peter Stephenson
2011-07-14 15:04           ` Bart Schaefer
2011-07-10 17:13 ` Bart Schaefer

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=20110713150103.2f5c6226@pwslap01u.europe.root.pri \
    --to=peter.stephenson@csr.com \
    --cc=zsh-users@zsh.org \
    /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).