From: "Fernando J. Pereda" <ferdy@ferdyx.org>
To: Git Mailing List <git@vger.kernel.org>
Subject: Re: ./configure script prototype
Date: Mon, 14 Nov 2005 17:32:40 +0100 [thread overview]
Message-ID: <20051114163240.GA32445@ferdyx.org> (raw)
In-Reply-To: <20051114132956.GT30496@pasky.or.cz>
[-- Attachment #1: Type: text/plain, Size: 871 bytes --]
On Mon, Nov 14, 2005 at 02:29:56PM +0100, Petr Baudis wrote:
| Dear diary, on Mon, Nov 14, 2005 at 01:18:52PM CET, I got a letter
| where Andreas Ericsson <ae@op5.se> said that...
| > --prefix=*)
| > prefix=${1##*=}
|
| Aren't those heavy bashisms?
As far as I know, it should be supported by a POSIX 'sh'[1]:
---8<---
${parameter##word}
Remove Largest Prefix Pattern. The word shall be expanded to produce a
pattern. The parameter expansion shall then result in parameter, with
the largest portion of the prefix matched by the pattern deleted.
---8<---
Whether other shells support it or not... I don't know.
Cheers,
Ferdy
[1] http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
--
Fernando J. Pereda Garcimartin
Gentoo Developer (Alpha,net-mail,mutt,git)
20BB BDC3 761A 4781 E6ED ED0B 0A48 5B0C 60BD 28D4
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-11-14 16:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-14 12:18 ./configure script prototype Andreas Ericsson
2005-11-14 12:18 ` Andreas Ericsson
2005-11-14 13:29 ` Petr Baudis
2005-11-14 14:32 ` Andreas Ericsson
2005-11-14 15:51 ` Chris Wedgwood
2005-11-14 16:11 ` Andreas Ericsson
2005-11-14 17:45 ` Chris Wedgwood
2005-11-14 16:32 ` Fernando J. Pereda [this message]
2005-11-14 18:19 ` Joel Becker
2005-11-14 18:39 ` Linus Torvalds
2005-11-14 18:59 ` Joel Becker
2005-11-14 19:03 ` Andreas Ericsson
2005-11-14 20:21 ` Junio C Hamano
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=20051114163240.GA32445@ferdyx.org \
--to=ferdy@ferdyx.org \
--cc=git@vger.kernel.org \
/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.
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).