[bug #23065] -daystart measures from start of tomorrow - manual incorrect
Andreas Metzler <[email protected]> Sat, 6 Jun 2026 07:56:45 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Follow-up Comment #5, bug #23065 (group findutils):
[comment #3 Kommentar #3:]
> Since this bug has been with us in the code for a long, long time, I'm
> reluctant to just fix it in a point release, because this will doubtless
> change the effect of a number of user scripts.
I agree.
[...]
> 1. Modify the existing -daystart so that it takes an optional argument. The
> argument can be "tomorrow-ish" or "today". "-daystart tomorrow-ish" has the
> same meaning as -daystart does now. Document the precise effect of
> tomorrow-ish. ("ish" because of the problem with short/long days). The
> argument "today" makes find do what the documentation says it should. If no
> argument is used, a warning message is issued and "tomorrow-ish" is assumed.
> 2. Either deprecate "-daystart" without a following option, or warn that its
> meaning will change.
I would rather avoid the deprecation/warning tango. Add the optional argument,
document both cases but do not deprecate/warn about the old use.
FWIW the docs seem to be completely wrong right now ("Measure times ... from
the beginning of today rather than from 24 hours ago.") - Neither -mtime nor
-mmin measure from 24 hours ago without -daystart, they meaure from *NOW*.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?23065>
_______________________________________________
Nachricht gesendet über Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaiQK/QAKCRCqLAuaBUf3 TkVRAP981LZDShVkzjINpZ53hoZOFVt8qqdkZr7zO4j0zoJvPwD9EFksqAFsWAYz /gBoLomh/zVDUFH5HRptq1b7FuQVTgA= =PYh4 -----END PGP SIGNATURE-----