X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Fglob%2Fgmisc.c;h=17e4265ff27ad9a8a32ddb12dc122837b8c9a66e;hb=ac50fbac377e32b98d2de396f016ea81e8ee9961;hp=683035a2510df47c00e8f79364e7ba71c125e218;hpb=4539d736f1aff232857a854fd2a68df0c98d9f34;p=platform%2Fupstream%2Fbash.git diff --git a/lib/glob/gmisc.c b/lib/glob/gmisc.c index 683035a..17e4265 100644 --- a/lib/glob/gmisc.c +++ b/lib/glob/gmisc.c @@ -200,6 +200,24 @@ bad_bracket: } #endif +int +extglob_pattern_p (pat) + char *pat; +{ + switch (pat[0]) + { + case '*': + case '+': + case '!': + case '@': + return (pat[1] == LPAREN); + default: + return 0; + } + + return 0; +} + /* Return 1 of the first character of STRING could match the first character of pattern PAT. Used to avoid n2 calls to strmatch(). */ int