[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: rev 1791 - trunk/subversion/clients/cmdline trunk/tools/dev

From: Peter Mathiasson <peter_at_mathiasson.nu>
Date: 2002-04-27 22:47:34 CEST

On Sat, Apr 27, 2002 at 01:37:51AM +0100, Philip Martin wrote:
> I should have read more of the man page before replying...
>
> Here is the relevant bit:
>
> "If the extglob shell option is enabled using the shopt
> builtin, several extended pattern matching operators are
> recognized. In the following description, a pattern-list
> is a list of one or more patterns separated by a |. Com­
> posite patterns may be formed using one or more of the
> following sub-patterns:
>
> ?(pattern-list)
> Matches zero or one occurrence of the given
> patterns
> *(pattern-list)
> Matches zero or more occurrences of the
> given patterns
> +(pattern-list)
> Matches one or more occurrences of the given
> patterns
> @(pattern-list)
> Matches exactly one of the given patterns"
>
>

${parameter}
    The value of parameter is substituted. The braces are
    required when parameter is a positional parameter
    with more than one digit, or when parameter is followed
    by a character which is not to be interpreted as part of
    its name.

I think that's Posix standard. Do you really need that extended
expansion, or are you just using variable substitution?

Note, I haven't actually looked at the code.

-- 
Peter Mathiasson, peter at mathiasson dot nu, http://www.mathiasson.nu
GPG Fingerprint: A9A7 F8F6 9821 F415 B066 77F1 7FF5 C2E6 7BF2 F228

  • application/pgp-signature attachment: stored
Received on Sat Apr 27 22:48:48 2002

This is an archived mail posted to the Subversion Dev mailing list.