diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2018-04-29 17:46:08 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2018-04-29 17:46:08 +0000 |
| commit | 4d7f36eea512377761f16ab24054c9b321b8539f (patch) | |
| tree | 9a78e20c7cf1d75e12998f10cb211eacf5507a54 /bin/sh/expand.c | |
| parent | a7163bb962b66afb768707fa0b5ad6773d755503 (diff) | |
Notes
Diffstat (limited to 'bin/sh/expand.c')
| -rw-r--r-- | bin/sh/expand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/sh/expand.c b/bin/sh/expand.c index 3b44d5569a664..f2287bea5605b 100644 --- a/bin/sh/expand.c +++ b/bin/sh/expand.c @@ -1342,8 +1342,10 @@ patmatch(const char *pattern, const char *string) } if (c == '[' && *p == ':') { found |= match_charclass(p, chr, &end); - if (end != NULL) + if (end != NULL) { p = end; + continue; + } } if (c == CTLESC) c = *p++; |
