Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Failing to write to history file if containing directory doesn't exist
- X-seq: zsh-workers 23918
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Failing to write to history file if containing directory doesn't exist
- Date: Mon, 08 Oct 2007 14:38:02 +0100
- In-reply-to: <dbfc82860710080508o3ef1de0br957caf39bb2aa19f@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860710080309m41cfa984q5aa0474c6b4bdf62@xxxxxxxxxxxxxx> <200710081015.l98AFlIU018448@xxxxxxxxxxxxxx> <dbfc82860710080508o3ef1de0br957caf39bb2aa19f@xxxxxxxxxxxxxx>
Nikolai Weibull wrote:
> > I'd have thought it was a reasonable expectation that the directory
> > already existed. You can always add "mkdir -p ${HISTFILE:h}" when you
> > set HISTFILE, if you need to.
>
> Yes, sure, but if we assume that this isn't always the case, would
> code that dealt with this case be interesting for inclusion?
I'm frankly lukewarm about adding code for stuff that can already be
done in shell code if you need it, but if you think this is likely to
happen in practice I'll add your C code.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author