1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-17 11:41:07 +01:00

zsh-workers/7611

This commit is contained in:
Tanaka Akira 1999-09-01 14:15:12 +00:00
parent afea70b88e
commit 2d4fc9a653
4 changed files with 416 additions and 334 deletions

View file

@ -623,6 +623,12 @@ par_case(Cmd c)
}
if (*s || pct || s == str + 1)
YYERRORV;
/* Simplify pattern by removing surrounding (...) */
sl = strlen(str);
DPUTS(str[1] != Inpar || str[sl-1] != Outpar,
"BUG: strange case pattern");
str[sl-1] = '\0';
chuck(str+1);
break;
} else {
char *str2;