1
0
Fork 0
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:
Peter Stephenson 2007-05-01 22:05:03 +00:00
parent eb4c3d4bf2
commit 7f03c3d851
14 changed files with 392 additions and 51 deletions

View file

@ -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(" ");