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 28039
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: zsh doesn't load HISTFILE from readonly directory
- Date: Mon, 14 Jun 2010 15:05:21 +0100
- In-reply-to: <slrni19mjh.hil.joerg@xxxxxxxxxxxx>
- 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>
On Sun, 13 Jun 2010 13:17:37 +0000 (UTC)
JÃrg Sommer <joerg@xxxxxxxxxxxx> wrote:
> if the directory, containing the history file, is not writeable, zsh
> doesn't load the data and I've not history.
Yes, it's returning after not being able to lock the file. This is
unhealthy because (1) there's no error, which might be arguable for normal
interactive history but is certainly wrong for an explicit "fc -R" (2)
there's no reason why it shouldn't just read the history.
Not immediately sure how wide the scope of the fix should be. Get locking
to check if the file is not writeable for some reason (which is a different
test from checking if it can be locked)? Do we need to remember that we
didn't lock it to avoid errors later? Or should we simply issue a warning
when and continue any time we can't lock the file? That's simple but it's
not very safe if the file can be written and shared history is in use.
--
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