bug-bash
[Top][All Lists]
Advanced

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

Re: why does time (cmd) 2> file redirect time's output?


From: Chet Ramey
Subject: Re: why does time (cmd) 2> file redirect time's output?
Date: Wed, 9 Mar 2016 08:04:33 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 3/8/16 6:04 AM, Isabella Parakiss wrote:

> 
> This seems to be a related problem:
> $ time (exec true)              # doesn't print anything

Timing is an attribute associated with a command.  In this case, that's the
simple command (`exec true') that is run in a subshell.  When that command
is executed, the shell that is started to run the subshell and print the
timing statistics is overwritten by the `exec true'.


-- 
``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/



reply via email to

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