zsh-users
 help / color / mirror / code / Atom feed
From: "Nikolai Weibull" <now@bitwi.se>
To: "Matthew Wozniski" <godlygeek@gmail.com>
Cc: zsh-users@sunsite.dk
Subject: Re: Failing to write to history file if containing directory doesn't exist
Date: Mon, 8 Oct 2007 17:30:08 +0200	[thread overview]
Message-ID: <dbfc82860710080830r289c962eyde18f1564e7f0de0@mail.gmail.com> (raw)
In-Reply-To: <20071008151949.GA18576@mastermind>

On 10/8/07, Matthew Wozniski <godlygeek@gmail.com> wrote:

> On Mon, Oct 08, 2007 at 10:14:03AM -0400, Clint Adams wrote:

> > Personally, I'd be a little shocked and annoyed if zsh started creating
> > directories without my explicit permission.

> I don't know that I'd be shocked, but I would err on the side of
> a smaller, faster, more maintainable shell, given how easy to handle
> in shell code the problem is.  Shell code is more easily maintained
> than C, and for an error condition that should only exist when the
> HISTFILE parameter is set, I think adding code to the shell itself
> would be overkill.  If you're already setting HISTFILE yourself, it's
> not too much extra work to add an mkdir -p above it.

And what if the directory gets deleted between the time HISTFILE is
set and the shell exits?

I'd rather err on the side of a more intelligent, "work hard for the
user"-type shell that doesn't let my data disappear out into oblivion
without doing its best to keep said data around.


  reply	other threads:[~2007-10-08 15:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <dbfc82860710080309m41cfa984q5aa0474c6b4bdf62@mail.gmail.com>
     [not found] ` <200710081015.l98AFlIU018448@news01.csr.com>
     [not found]   ` <dbfc82860710080508o3ef1de0br957caf39bb2aa19f@mail.gmail.com>
     [not found]     ` <200710081338.l98Dc2br012284@news01.csr.com>
     [not found]       ` <dbfc82860710080705w6e90db9i2a9714caf27460c4@mail.gmail.com>
     [not found]         ` <20071008141403.GA25326@scowler.net>
2007-10-08 15:19           ` Matthew Wozniski
2007-10-08 15:30             ` Nikolai Weibull [this message]
2007-10-08 15:46               ` Matthew Wozniski
2007-10-08 22:32                 ` Nikolai Weibull
2007-10-09  1:44                   ` Bart Schaefer
2007-10-09  1:58                     ` Matthew Wozniski
2007-10-09  7:17                       ` Nikolai Weibull
2007-10-17 11:16                       ` Richard Hartmann
2007-10-17 11:47                         ` Matthew Wozniski
2007-10-17 12:07                           ` Richard Hartmann
2007-10-17 13:24                             ` Nikolai Weibull
2007-10-17 14:57                               ` Matthew Wozniski
2007-10-17 15:06                               ` Duncan Sinclair

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dbfc82860710080830r289c962eyde18f1564e7f0de0@mail.gmail.com \
    --to=now@bitwi.se \
    --cc=godlygeek@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).