[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'time' not recognized as reserved when first word after 'if'
From: |
Chet Ramey |
Subject: |
Re: 'time' not recognized as reserved when first word after 'if' |
Date: |
Wed, 11 Jun 2014 10:39:50 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 6/9/14, 8:51 PM, Dale R. Worley wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
> -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/share/locale'
> -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g
> -O2
> uname output: Linux hobgoblin.ariadne.com 3.14.4-100.fc19.x86_64 #1 SMP Tue
> May 13 15:00:26 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> Machine Type: x86_64-unknown-linux-gnu
>
> Bash Version: 4.3
> Patch Level: 0
> Release Status: release
>
> Description:
>
> It appears that the reserved word 'time' is not recognized as such if
> it is the first word of the command following 'if'. Instead,
> /usr/bin/time is executed, producing different output.
Thanks for the report. There are several places where `time' should be
recognized as a reserved word where it currently is not. Please try the
attached patch and verify that it does what you want.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
parse-time-keyword.patch
Description: Source code patch