bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd bash behaviour with time:


From: Ángel González
Subject: Re: Odd bash behaviour with time:
Date: Tue, 04 Nov 2014 01:24:23 +0100

Piotr Grzybowski wrote:
> Hi Chet, hi all.
> 
>  based on what you say, and some comments in parse.y ;-) isn't the
> below patch enough to get rid of the parser error for "time;echo;"
> case?
> 
> diff --git a/parse.y b/parse.y
> index 815db98..766f258 100644
> --- a/parse.y
> +++ b/parse.y
> @@ -1224,6 +1224,8 @@ pipeline_command: pipeline
>                           /* XXX - let's cheat and push a newline back */
>                           if ($2 == '\n')
>                             token_to_read = '\n';
> +                         if ($2 == ';')
> +                           token_to_read = ';';
>                         }
>         |       BANG list_terminator
>                         {
> 
> cheers,
> pg


There are more syntax errors equivalent to the "time;" case:
time &
time && bar
time | foo
time || true
...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]