zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: adding mkdir to _store_cache
Date: Wed, 11 Sep 2002 14:15:56 +0000	[thread overview]
Message-ID: <1020911141556.ZM4303@candle.brasslantern.com> (raw)
In-Reply-To: <3D7F41BE.mail11111MJM9@pleyades.net>

On Sep 11,  3:14pm, DervishD wrote:
} Subject: Re: adding mkdir to _store_cache
} 
} >> "mkdir -p" is not universally supported.
} >I thought modern versions of *nix had the "-p" flag.
} 
}     The Single Unix Specification v3 specify it, and GNU fileutils
} (version 4.1, which is what I have) supports it.

It occurs to me that possibly the most obvious solution is

    (zmodload zsh/files 2>/dev/null; mkdir -p ...)

[Directed to /dev/null rather than used -i because "already loaded" is
not the only possible error to be ignored.]

Now that module builtins are not automatically loaded when the module is
compiled into the binary, we could change the default config.modules line
for the files (and possibly also stat, net/socket, and zftp) modules to
cause them to be linked to static builds.  Then the above subshell trick
would give us nearly-guaranteed access to necessary functionality.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


      parent reply	other threads:[~2002-09-11 14:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-09 14:43 Felix Rosencrantz
2002-09-09 16:23 ` Bart Schaefer
2002-09-11 10:16   ` Felix Rosencrantz
2002-09-11 13:14     ` DervishD
2002-09-11 13:13       ` Peter Stephenson
2002-09-11 14:15       ` Bart Schaefer [this message]

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=1020911141556.ZM4303@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).