Re: SECONDS=0 does not reset SECONDS, or I'm missing something
From:
Eli Schwartz
Subject:
Re: SECONDS=0 does not reset SECONDS, or I'm missing something
Date:
Thu, 4 Jun 2020 10:28:44 -0400
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0
On 6/4/20 10:18 AM, Pier Paolo Grassi wrote:
> sorry, you're right. Nonetheless the result is the same
>
> SECONDS=0; E $SECONDS; sleep 0.9; E $SECONDS
> 0
> 1
>
> maybe the behavior changed in more recent versions of zsh
zsh 5.8
It produces two zeroes, across about 15 runs. The first time, it did
produce a zero followed by a one, but I could not reproduce it.
--
Eli Schwartz
Arch Linux Bug Wrangler and Trusted User
signature.asc Description: OpenPGP digital signature