help-bash
[Top][All Lists]
Advanced

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

Re: Should -et be available?


From: Quentin L'Hours
Subject: Re: Should -et be available?
Date: Mon, 25 May 2020 15:35:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 25/05/2020 15:11, Peng Yu wrote:
But if your point is that -et should not be added. Then, why having
-eq (as -le -ge implies -eq)?

Therefore, I think -eq should be added to bash to make it complete in
timestamp test.

It's probably because -eq is useful in many scenarios.
But on the other hand testing that two files have the exact same timestamp seems very specific, whereas checking for instance if a file is outdated compared to another one is very common.

Things that are only useful in very specific situations and that can be achieved with simple workarounds (-e + -ot + -nt here) have very little chance to be added (even if it seems trivial) for the usual reasons: development time, maintenance, increased complexity etc.

--
Quentin



reply via email to

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