me has value to me. I don't want to
spend it in writing a change that will be rejected. Neither I want to
spend maintainer time to go through that sort of stuff. In other
words; fail as fast & cheap way as possible is a good workflow.
--
Sami Kerola
http://www.iki.fi/kerolasa/
On 30 October 2014 01:25, Chet Ramey wrote:
> On 10/29/14 10:09 AM, Sami Kerola wrote:
>> Would it make sense to add to 'time' builtin a way to measure how long
>> a file descriptor is been kept open? Something like this.
>
> You can use $SECONDS for this, but y
exec 42>&0
time --file-descriptor 42
for i in items; in
exec 52>&0
time --file-descriptor 52
echo "processing $i"
[...]
echo "item $i took"
exec 52>&-
done
echo 'all together took:'
exec 42>&am