mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 17:31:02 +01:00
23375: Phil Pennock: =~, zsh/regex etc. etc.
This commit is contained in:
parent
eb4c3d4bf2
commit
7f03c3d851
14 changed files with 392 additions and 51 deletions
|
|
@ -640,7 +640,7 @@ gettext2(Estate state)
|
|||
{
|
||||
static char *c1[] = {
|
||||
"=", "!=", "<", ">", "-nt", "-ot", "-ef", "-eq",
|
||||
"-ne", "-lt", "-gt", "-le", "-ge"
|
||||
"-ne", "-lt", "-gt", "-le", "-ge", "=~"
|
||||
};
|
||||
|
||||
int ctype;
|
||||
|
|
@ -724,7 +724,7 @@ gettext2(Estate state)
|
|||
}
|
||||
break;
|
||||
default:
|
||||
if (ctype <= COND_GE) {
|
||||
if (ctype < COND_MOD) {
|
||||
/* Binary test: `a = b' etc. */
|
||||
taddstr(ecgetstr(state, EC_NODUP, NULL));
|
||||
taddstr(" ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue