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:
> Matches zero or one occurrence of the given
> Matches zero or more occurrences of the
> given patterns
> Matches one or more occurrences of the given
> Matches exactly one of the given patterns"
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
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
Received on Sat Apr 27 22:48:48 2002
- application/pgp-signature attachment: stored