Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh doesn't load HISTFILE from readonly directory
- X-seq: zsh-workers 28053
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: zsh doesn't load HISTFILE from readonly directory
- Date: Tue, 22 Jun 2010 12:02:42 +0100
- In-reply-to: <20100617170730.63c0bcde@xxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <slrni19mjh.hil.joerg@xxxxxxxxxxxx> <20100614150521.068ec280@xxxxxxx> <20100614151626.185ba382@xxxxxxx> <20100617170730.63c0bcde@xxxxxxx>
On Thu, 17 Jun 2010 17:07:30 +0100
Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> > > Or should
> > > we simply issue a warning when and continue any time we can't lock
> > > the file?
> >
> > So, as long as we narrow this to make a check for why we couldn't
> > create the lock (EACCES in this case) maybe this is the right way to
> > go after all?
> >
> > We still need to decide when we should print an error. I would be
> > tempted to do it every time.
>
> This prints an error when fc fails, but not when interactive history
> fails. It probably wants careful looking over: note the change of
> meaning in return values from file locking.
I've committed this, so watch for oddities to do with history reading and
writing.
(I also committed a change to _zstyle by mistake which is harmless but
currently useless. It should become more useful after I post some new
shell functions.)
--
Peter Stephenson <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author