From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23880 invoked by alias); 13 Jul 2011 14:01:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16128 Received: (qmail 496 invoked from network); 13 Jul 2011 14:01:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Wed, 13 Jul 2011 15:01:03 +0100 From: Peter Stephenson To: Subject: Re: locking failed for /home/whoever/.zhistory: no such file or directory Message-ID: <20110713150103.2f5c6226@pwslap01u.europe.root.pri> In-Reply-To: References: <201107101653.p6AGrute004254@pws-pc.ntlworld.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.26] X-Scanned-By: MailControl A-12-00-01 (www.mailcontrol.com) on 10.68.0.115 On Wed, 13 Jul 2011 08:50:07 -0500 Cesar Romani 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 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