diff options
author | Chet Ramey <chet.ramey@case.edu> | 2014-02-26 09:36:43 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2014-02-26 09:36:43 -0500 |
commit | ac50fbac377e32b98d2de396f016ea81e8ee9961 (patch) | |
tree | f71882366b98fedf1a88a063103219a4935de926 /lib/glob/gmisc.c | |
parent | 4539d736f1aff232857a854fd2a68df0c98d9f34 (diff) | |
download | android_external_bash-ac50fbac377e32b98d2de396f016ea81e8ee9961.tar.gz android_external_bash-ac50fbac377e32b98d2de396f016ea81e8ee9961.tar.bz2 android_external_bash-ac50fbac377e32b98d2de396f016ea81e8ee9961.zip |
Bash-4.3 distribution sources and documentation
Diffstat (limited to 'lib/glob/gmisc.c')
-rw-r--r-- | lib/glob/gmisc.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 |