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 23920
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxx>
- Subject: Re: Failing to write to history file if containing directory doesn't exist
- Date: Mon, 8 Oct 2007 16:05:58 +0200
- Cc: zsh-workers <zsh-workers@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=7wvLYyDVa3kUgMnkQZW4NYSvUurWKHnYvQn/5ibXa08=; b=tEYkJpOR/yHjL9HCfbFpReoJ4lchjTqHclvX9lF5gOJWGLGe+oy0/Y8TXroWj6uOpsVHXu3za1ONm5WLrBz35XZYpBA06YpCzyrmqSgg5VPo1NyLyaWeDnzdHoNCgf/8dRbbe12X1TOvJOzfvWLoRih4bH5H2vuwSnd6GXcyT+Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=hz5JQ5bBGHuJH+CTGVs7Gn5dk+PZWAzvKZjCD0Y3tO/RE0T+MMxmCok5vrtmupbUZLKS2F0pvsdjWGFD7I1NLXOHLIqYwRfy2orX6KTijyD/Ae7x6DSWA5qENC1VvYTrkh+XNPi1G1awHi1RPI7S/dI20WTGsEd259N9NsLpTvg=
- In-reply-to: <200710081338.l98Dc2br012284@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860710080309m41cfa984q5aa0474c6b4bdf62@xxxxxxxxxxxxxx> <200710081015.l98AFlIU018448@xxxxxxxxxxxxxx> <dbfc82860710080508o3ef1de0br957caf39bb2aa19f@xxxxxxxxxxxxxx> <200710081338.l98Dc2br012284@xxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
On 10/8/07, Peter Stephenson <pws@xxxxxxx> wrote:
> 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.
I was guessing as much. It's not a condition that comes up often.
I discovered this "problem" when I set up a new account for myself on
a new system. I have HISTFILE set to "~/.local/var/lib/zsh/history"
in an attempt at making my home directory somewhat Filesystem Hierachy
Standard "compliant". Now "~/.local/var/lib" existed, but zsh wasn't
there. Thus Zsh failed to open the history file.
[1] http://www.pathname.com/fhs/pub/fhs-2.3.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author