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:
parent
afea70b88e
commit
2d4fc9a653
4 changed files with 416 additions and 334 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue