From: DervishD <raul@pleyades.net>
To: f_rosencrantz@yahoo.com, zsh-workers@sunsite.dk,
schaefer@brasslantern.com
Subject: Re: adding mkdir to _store_cache
Date: Wed, 11 Sep 2002 15:14:38 +0200 [thread overview]
Message-ID: <3D7F41BE.mail11111MJM9@pleyades.net> (raw)
In-Reply-To: <20020911101647.89808.qmail@web10406.mail.yahoo.com>
Hi Felix :)
>> "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.
>Is there something that is portable?
Well, you can use parameter expansion and use the '##' and '%%'
expansions for getting each component of the path and make
directories simulating '-p', but IMHO it doesn't worth the effort.
>Basically that code was copied from the existing code, we already
>do a "-p" to create the cache directory if it doesn't exist.
>So that needs to be fixed also.
Autoconf uses '-p' too, if I remember well :? Anyway, if you want
to make something portable, you must assume that you cannot do it
*universally* portable. Just make it portable among 'current
practice unixes'. IMHO it doesn't make sense to make a thing work for
a couple of systems in a difficult way just for not using a feature
that the rest 98% systems have O:))
Raúl
next prev parent reply other threads:[~2002-09-11 13:05 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 [this message]
2002-09-11 13:13 ` Peter Stephenson
2002-09-11 14:15 ` Bart Schaefer
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=3D7F41BE.mail11111MJM9@pleyades.net \
--to=raul@pleyades.net \
--cc=f_rosencrantz@yahoo.com \
--cc=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).