From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25368 invoked from network); 8 Oct 2007 12:08:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Oct 2007 12:08:25 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 42652 invoked from network); 8 Oct 2007 12:08:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Oct 2007 12:08:19 -0000 Received: (qmail 14047 invoked by alias); 8 Oct 2007 12:08:17 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23917 Received: (qmail 14032 invoked from network); 8 Oct 2007 12:08:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Oct 2007 12:08:16 -0000 Received: (qmail 42403 invoked from network); 8 Oct 2007 12:08:16 -0000 Received: from wr-out-0506.google.com (64.233.184.229) by a.mx.sunsite.dk with SMTP; 8 Oct 2007 12:08:10 -0000 Received: by wr-out-0506.google.com with SMTP id c48so587072wra for ; Mon, 08 Oct 2007 05:08:09 -0700 (PDT) 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=YM3rY7oUPozZOb9c8Z0Phyfcl96u63vVpOu9EF1GNO0=; b=fC6cM2xOichAqEP8suhD+TcDcGI2erFJVxsmN4zNIgv3h/KsViUyjWc/+35sVnTki7fADIkNiggSjHJ/r1Y/wXRfzjDT95PeZGRsQpOHOpCjZqBV0Hk1vYmQeyxY7+ZWOcq5h33roeVZtd/XPpE4YNBTBLztJ5257dVwFbcNVCI= 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=Pv9stbOIDq9c3YEincy1VdbsWxjx73E2ti2xaQh/q5N7JQ693klCBN5of8SS/UZlbtERZjf5w9zbv1B2lNeD0YBweo1lvGz707fJbrFTk2goJILFnj6f5GpYDlwCa1vLF/VtuzexMOrRsAVag7NDfPKhWAQqqWTNnpnYHPV1zaE= Received: by 10.90.102.20 with SMTP id z20mr3541881agb.1191845289243; Mon, 08 Oct 2007 05:08:09 -0700 (PDT) Received: by 10.90.93.19 with HTTP; Mon, 8 Oct 2007 05:08:08 -0700 (PDT) Message-ID: Date: Mon, 8 Oct 2007 14:08:08 +0200 From: "Nikolai Weibull" Sender: nikolai.weibull@gmail.com To: "Peter Stephenson" Subject: Re: Failing to write to history file if containing directory doesn't exist Cc: zsh-workers In-Reply-To: <200710081015.l98AFlIU018448@news01.csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200710081015.l98AFlIU018448@news01.csr.com> X-Google-Sender-Auth: c77054c43a7b6cb1 On 10/8/07, Peter Stephenson wrote: > "Nikolai Weibull" wrote: Why do mail user agents still do this? My name /is/ Nikolai Weibull. > > 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?