bug-bash
[Top][All Lists]
Advanced

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

Re: `time ( someCmd )` Doesn't Print Time Under 5.2


From: Chet Ramey
Subject: Re: `time ( someCmd )` Doesn't Print Time Under 5.2
Date: Tue, 22 Nov 2022 17:01:02 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0

On 11/21/22 7:07 PM, dabe@dabe.com wrote:

Bash Version: 5.2
Patch Level: 9
Release Status: release

Description:
        Under 5.2.x, measuring the `time` of a subshell -- `time ( sleep 1 )` 
for example -- doesn't display any timing information,
         whereas `5.1.x` and before did.

Thanks for the report. It's an easy fix; bash was optimizing away the fork
and therefore not printing the timing information.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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