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



On 10/8/07, Peter Stephenson <pws@xxxxxxx> wrote:

> "Nikolai Weibull" wrote:

<rant>
Why do mail user agents still do this?  My name /is/ Nikolai Weibull.
</rant>

> > Zsh currently fails to write a history file if the directory
> > containing it doesn't exist.  Would a patch that creates the parent
> > directory if it doesn't exist before attempting to write to the
> > history file be of any interest?  I'd be willing to write such a
> > patch, but if this behavior is undesirable, I won't waste my time.

> 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?



Messages sorted by: Reverse Date, Date, Thread, Author