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



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