Your message dated Sat, 16 Dec 2023 17:10:03 +0100
with message-id <[email protected]>
and subject line This bug report seems useless in my opinion
has caused the Debian Bug report #946382,
regarding Mention if one can use leading zeros
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
946382: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946382
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cron
Version: 3.0pl1-135
Severity: wishlist
File: /usr/share/man/man5/crontab.5.gz
Mention if one can use leading zeros,
09 00 01 05 * echo File SNOT-5554 form
02 00 01 20 * echo Nerdsburg Jr. wedding anniversary
to e.g., make columns line up, or will they be interpreted as octal, etc.
--- End Message ---
--- Begin Message ---
Hello Dan,
I would like to get more information about your intent, for this bug
report.
Should leading zeroes be supported for the sake of making columns line
up, or should leading zeroes be used to introduce octal constants, in
your opinion?
As far as I understand the code of the file entry.c, numbers are parsed
by the function atoi:
-------------8<- file entry.c's excerpt --
if (all_digits) {
*numptr = atoi(temp);
return ch;
}
-------------8<---------------------------
... which means that numbers prefixed by zeroes are considered as
decimal.
My opinion is that such an issue would not bother many people: numeric
entries stand for minutes, hours, days, day of month, mont, day of week.
So nobody need to write three digits to express such numbers.
In octal, 00 to 07 would mean the same as in decimal, and 08, 09 would
make no sense; so if one is in a doubt, one can give a try with 08 or 09
and see whether cron complains ;)
I am hereby closing this bug report. Feel free to reopen it if you want
to add something more about it.
Best regards, Georges.
--
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70
signature.asc
Description: PGP signature
--- End Message ---