diff --git a/commands/ash/bltin/regexp.c b/commands/ash/bltin/regexp.c index db546d638..cd026ac95 100755 --- a/commands/ash/bltin/regexp.c +++ b/commands/ash/bltin/regexp.c @@ -246,7 +246,7 @@ ccl: p++; } p++; - if (found == negate) + if (found == negate || c == 0) goto bad; break; case RE_LP: