bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extglob


From: Pierre Gaston
Subject: Re: extglob
Date: Sat, 16 May 2009 09:57:18 +0300

On Sat, May 16, 2009 at 2:44 AM, Chris F.A. Johnson <cfaj@freeshell.org> wrote:
>
>   Am I missing something, or are these extended globbing patterns
>   equivalent to a plain asterisk?
>
> ?(pattern-list) Matches zero or one occurrence of the given patterns
> *(pattern-list) Matches zero or more occurrences of the given patterns

a * will match too much:

[[ bor = b?(a)r ]] #  false
[[ bor = b*r ]] # true

[[ baar = b?(a)r ]] #false
[[ baar = b*r ]] #true


[[ bor = b*(a)r ]] #  false
[[ bor = b*r ]] # true




reply via email to

[Prev in Thread] Current Thread [Next in Thread]