Re: [systemd-devel] [PATCH 1/5] calendar: semesterly alias for semi-annually
I am still not convinced that semesterly is really a good addition. See previous comments about that: I am a bit conservative about that. Semester has a very academic touch to it, and at least in germany the semester usually starts in october, not in january. I'd rather stay away from this word hence, since at least to me it appears to suggest something different than *-1,7-1... And we do have semi-annually already that covers this nicely. I know, you're a bit conservative. This is why anually is still there for backward compatibility, although is wrong. But IMHO the semesterly alias is a reasonable word that sound like the other cases with -ly at the end. And a semester also exists outside of the University. It's your decision. We can also survive without this (useful) alias :) ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] [PATCH 1/5] calendar: semesterly alias for semi-annually
On Thu, 30.10.14 12:19, Daniele Medri (dme...@gmail.com) wrote: I am still not convinced that semesterly is really a good addition. See previous comments about that: I am a bit conservative about that. Semester has a very academic touch to it, and at least in germany the semester usually starts in october, not in january. I'd rather stay away from this word hence, since at least to me it appears to suggest something different than *-1,7-1... And we do have semi-annually already that covers this nicely. --- man/systemd.time.xml | 4 ++-- src/shared/calendarspec.c| 3 ++- src/test/test-calendarspec.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/man/systemd.time.xml b/man/systemd.time.xml index f35ccd7..2342684 100644 --- a/man/systemd.time.xml +++ b/man/systemd.time.xml @@ -247,8 +247,8 @@ literalmonthly/literal, literalweekly/literal, literalyearly/literal, literalquarterly/literal, -literalsemiannually/literal may be used as -calendar events which refer to + literalsemesterly/literal or literalsemiannually/literal + may be used as calendar events which refer to literal*-*-* *:*:00/literal, literal*-*-* *:00:00/literal, literal*-*-* 00:00:00/literal, diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c index 7efcf7b..3115bba 100644 --- a/src/shared/calendarspec.c +++ b/src/shared/calendarspec.c @@ -757,7 +757,8 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) { } else if (strcaseeq(p, biannually) || strcaseeq(p, bi-annually) || strcaseeq(p, semiannually) || - strcaseeq(p, semi-annually)) { + strcaseeq(p, semi-annually) || + strcaseeq(p, semesterly)) { r = const_chain(1, c-month); if (r 0) diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c index 87e1da1..7610cff 100644 --- a/src/test/test-calendarspec.c +++ b/src/test/test-calendarspec.c @@ -80,6 +80,7 @@ int main(int argc, char* argv[]) { test_one(minutely, *-*-* *:*:00); test_one(quarterly, *-01,04,07,10-01 00:00:00); test_one(semi-annually, *-01,07-01 00:00:00); +test_one(semesterly, *-01,07-01 00:00:00); test_one(annually, *-01-01 00:00:00); test_one(*:2/3, *-*-* *:02/3:00); -- 1.9.3 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] [PATCH 1/5] calendar: semesterly alias for semi-annually
On Sun, Nov 02, 2014 at 02:35:53PM +0100, Daniele Medri wrote: yes, it's needed because all other terms are youNameIt-ly friendly. With this one, the patch 2/5 could be useful for semesterly alias and the man page revision. Sorry, but I don't understand what you mean. Sorting the code and man page by unit length is OK, but I don't see how that implies adding another alias to existing name. Semi-anually is nice and clear. Zbyszek [adding cc:systemd-devel which I dropped by mistake previously.] Take a look at 3/5-patch and 5/5-patch too. Are easy/needed changes. 2014-11-01 20:27 GMT+01:00 Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl: On Thu, Oct 30, 2014 at 12:19:11PM +0100, Daniele Medri wrote: --- man/systemd.time.xml | 4 ++-- src/shared/calendarspec.c| 3 ++- src/test/test-calendarspec.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/man/systemd.time.xml b/man/systemd.time.xml index f35ccd7..2342684 100644 --- a/man/systemd.time.xml +++ b/man/systemd.time.xml @@ -247,8 +247,8 @@ literalmonthly/literal, literalweekly/literal, literalyearly/literal, literalquarterly/literal, -literalsemiannually/literal may be used as -calendar events which refer to + literalsemesterly/literal or literalsemiannually/literal + may be used as calendar events which refer to Pluralitas non est ponenda sine necessitate. Is there a good reason, like compatiblity with existing usage for this adition? Zbyszek literal*-*-* *:*:00/literal, literal*-*-* *:00:00/literal, literal*-*-* 00:00:00/literal, diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c index 7efcf7b..3115bba 100644 --- a/src/shared/calendarspec.c +++ b/src/shared/calendarspec.c @@ -757,7 +757,8 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) { } else if (strcaseeq(p, biannually) || strcaseeq(p, bi-annually) || strcaseeq(p, semiannually) || - strcaseeq(p, semi-annually)) { + strcaseeq(p, semi-annually) || + strcaseeq(p, semesterly)) { r = const_chain(1, c-month); if (r 0) diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c index 87e1da1..7610cff 100644 --- a/src/test/test-calendarspec.c +++ b/src/test/test-calendarspec.c @@ -80,6 +80,7 @@ int main(int argc, char* argv[]) { test_one(minutely, *-*-* *:*:00); test_one(quarterly, *-01,04,07,10-01 00:00:00); test_one(semi-annually, *-01,07-01 00:00:00); +test_one(semesterly, *-01,07-01 00:00:00); test_one(annually, *-01-01 00:00:00); test_one(*:2/3, *-*-* *:02/3:00); -- 1.9.3 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- Daniele Medri ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] [PATCH 1/5] calendar: semesterly alias for semi-annually
--- man/systemd.time.xml | 4 ++-- src/shared/calendarspec.c| 3 ++- src/test/test-calendarspec.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/man/systemd.time.xml b/man/systemd.time.xml index f35ccd7..2342684 100644 --- a/man/systemd.time.xml +++ b/man/systemd.time.xml @@ -247,8 +247,8 @@ literalmonthly/literal, literalweekly/literal, literalyearly/literal, literalquarterly/literal, -literalsemiannually/literal may be used as -calendar events which refer to + literalsemesterly/literal or literalsemiannually/literal + may be used as calendar events which refer to literal*-*-* *:*:00/literal, literal*-*-* *:00:00/literal, literal*-*-* 00:00:00/literal, diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c index 7efcf7b..3115bba 100644 --- a/src/shared/calendarspec.c +++ b/src/shared/calendarspec.c @@ -757,7 +757,8 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) { } else if (strcaseeq(p, biannually) || strcaseeq(p, bi-annually) || strcaseeq(p, semiannually) || - strcaseeq(p, semi-annually)) { + strcaseeq(p, semi-annually) || + strcaseeq(p, semesterly)) { r = const_chain(1, c-month); if (r 0) diff --git a/src/test/test-calendarspec.c b/src/test/test-calendarspec.c index 87e1da1..7610cff 100644 --- a/src/test/test-calendarspec.c +++ b/src/test/test-calendarspec.c @@ -80,6 +80,7 @@ int main(int argc, char* argv[]) { test_one(minutely, *-*-* *:*:00); test_one(quarterly, *-01,04,07,10-01 00:00:00); test_one(semi-annually, *-01,07-01 00:00:00); +test_one(semesterly, *-01,07-01 00:00:00); test_one(annually, *-01-01 00:00:00); test_one(*:2/3, *-*-* *:02/3:00); -- 1.9.3 ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel