1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 08:51:18 +02:00

nix kaboom with `time time' (?)

This commit is contained in:
Sven Wischnowsky 2000-06-14 09:26:55 +00:00
parent 53f5cc9465
commit 5f81bbc869
2 changed files with 17 additions and 5 deletions

@ -1,6 +1,8 @@
2000-06-14 Sven Wischnowsky <wischnow@zsh.org>
* 11885: Src/Zle/complist.c: better fix for menu selection on dumb
* ?????: Src/parse.c: nix kaboom with `time time'
* ?????: Src/Zle/complist.c: better fix for menu selection on dumb
terminal
2000-06-13 Clint Adams <schizo@debian.org>

@ -799,10 +799,6 @@ par_cmd(int *complex)
par_funcdef();
cmdpop();
break;
case TIME:
*complex = 1;
par_time();
break;
case DINBRACK:
cmdpush(CS_COND);
par_dinbrack();
@ -813,6 +809,20 @@ par_cmd(int *complex)
ecstr(tokstr);
yylex();
break;
case TIME:
{
static int inpartime = 0;
if (!inpartime) {
*complex = 1;
inpartime = 1;
par_time();
inpartime = 0;
break;
}
}
tok = STRING;
/* fall through */
default:
{
int sr;