Package: cron
Version: 3.0pl1-115
Severity: minor

In the "EXAMPLE CRON FILE" section of crontab(5), there is this example:
       # Run on every second Saturday of the month
       0 4 8-15 * *    test $(date +\%u) -eq 6 && echo "2nd Saturday"
The range of days (8-15) in this example is one day too wide. In months
starting with a Saturday, the echo command will be executed both on the
8th (the second Saturday, as desired) and on the 15th (the third
Saturday). The range should be corrected to "8-14".

Also, when viewing crontab(5) with
  man 5 crontab
the line above is actually shown like this:
       0 4 8-15 * *    test $(date +u) -eq 6 && echo "2nd Saturday"
I.e. the percent sign and the backslash escaping it are missing. I suspect
the backslash has not been properly escaped itself in the manpage source.

-- Package-specific info:
--- EDITOR:
not set

--- usr/bin/editor:
/bin/nano

--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 35040 Oct 16 13:37 /usr/bin/crontab

--- /var/spool/cron
drwxr-xr-x 5 root root 4096 Aug 25  2009 /var/spool/cron

--- /var/spool/cron/crontabs
drwx-wx--T 2 root crontab 4096 Sep 28  2008 /var/spool/cron/crontabs


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cron depends on:
ii  adduser                       3.112+nmu2 add and remove users and groups
ii  debianutils                   3.4        Miscellaneous utilities specific t
ii  dpkg                          1.15.8.5   Debian package management system
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libpam-runtime                1.1.1-6.1  Runtime support for the PAM librar
ii  libpam0g                      1.1.1-6.1  Pluggable Authentication Modules l
ii  libselinux1                   2.0.96-1   SELinux runtime shared libraries
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip

Versions of packages cron recommends:
ii  exim4                         4.72-2     metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.72-2     lightweight Exim MTA (v4) daemon
ii  lockfile-progs                0.1.15     Programs for locking and unlocking

Versions of packages cron suggests:
ii  anacron                       2.3-14     cron-like program that doesn't go 
pn  checksecurity                 <none>     (no description available)
ii  logrotate                     3.7.8-6    Log rotation utility

Versions of packages cron is related to:
pn  libnss-ldap                   <none>     (no description available)
pn  libnss-ldapd                  <none>     (no description available)
pn  libpam-ldap                   <none>     (no description available)
pn  libpam-mount                  <none>     (no description available)
pn  nis                           <none>     (no description available)
pn  nscd                          <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to