Bug 253969 - The manual page for crontab is incorrect
Summary: The manual page for crontab is incorrect
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Chris Rees
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-03 00:44 UTC by Ben Bullock
Modified: 2021-03-03 16:40 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Bullock 2021-03-03 00:44:52 UTC
The "man 5 crontab" claims:

     Names can also be used for the ``month'' and ``day of week'' fields.  Use
     the first three letters of the particular day or month (case does not
     matter).  Ranges or lists of names are not allowed.

However, ranges such as mon-fri or lists such as mon,tue do work. This can easily be confirmed by adding lines such as

* * * * mon-fri echo "boo"
* * * Mar,Apr wed,thu echo "baa"

to crontab.
Comment 1 Chris Rees freebsd_committer 2021-03-03 16:39:24 UTC
Fixed.  Thanks for noticing!
Comment 2 commit-hook freebsd_committer 2021-03-03 16:40:00 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=29358694281ffa12c7dc8b94f09a9a146579fe6e

commit 29358694281ffa12c7dc8b94f09a9a146579fe6e
Author:     Chris Rees <crees@FreeBSD.org>
AuthorDate: 2021-03-03 16:35:45 +0000
Commit:     Chris Rees <crees@FreeBSD.org>
CommitDate: 2021-03-03 16:35:45 +0000

    crontab.5: Correct claims on ranges and names

    Ranges use the function get_number, which means that ranges of names
    are supported and indeed always have been, righ back to the initial
    import.

    PR:             docs/253969
    Reported by:    Ben Bullock <benkasminbullock@gmail.com>

 usr.sbin/cron/crontab/crontab.5 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)