Re: [PATCH 13/14] t4135-*.sh: Skip the "backslash" tests on cygwin
- From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
- Date
- Dec 28, 2010, 18:10 UTC
- Message-ID
- <4D1A2827.6070503@ramsay1.demon.co.uk>
- In-Reply-To
- <AANLkTi=-7ihdW_cMiAqnyjbUE_d35OFrSSnQQw4mi64G@mail.gmail.com>
Nguyen Thai Ngoc Duy wrote:
Show 10 quoted lines
> On Wed, Dec 22, 2010 at 2:31 AM, Ramsay Jones > <ramsay@ramsay1.demon.co.uk> wrote: >> The problem boils down to the call to strncmp_icase() suppressing the call to >> fnmatch() when the pattern contains glob chars, but the (remaining) string is >> equal to the name; thus returning an exact match (MATCHED_EXACTLY) rather than >> calling fnmatch (and returning either no-match or MATCHED_FNMATCH). > > I think that's expected behavior. Wildcard pathspecs are fixed > pathspecs will additional wildcard matching support and can match both > ways. See 186d604 (glossary: define pathspec)
Really? Hmm, that seems ... odd! (To be clear: you are saying that an exact match, *even if the pattern contains glob chars*, takes precedence over the glob match! - again *odd*) Well, if you are happy with that ...
ATB, Ramsay Jones