bug-bash
[Top][All Lists]
Advanced

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

Re: Potentially misleading documentation of SECONDS variable


From: Bash-help
Subject: Re: Potentially misleading documentation of SECONDS variable
Date: Thu, 15 Aug 2024 09:54:34 +0200
User-agent: K-9 Mail for Android

On 15 August 2024 08:57:42 CEST, felix <felix@f-hauri.ch> wrote:
>The variable $SECOND won't intend to be exact to the nanoseconds!
>
If you have read the thread you should know that this fact is already 
established.

>[...] This variable is intended to show current
>time of execution, at SECOND resolution.
>
The problem I saw, and lifted here, was that this is not the case, is it? The 
examples provided earlier in the mail thread clearly show that I can have I 
script run for i.e. 0.1 second and the $SECONDS variable show 1 second has 
passed. This is WRONG, by all possible interpretations. A minor change in the 
documentation would make the behaviour understandable and acceptable, which I 
think is a good way forward.


reply via email to

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