[Remind-Fans] Overdue items (cont.) -> plural()
David F. Skoll
dfs at roaringpenguin.com
Thu Dec 11 20:34:54 EST 2014
On Thu, 11 Dec 2014 17:21:43 -0800
morel_rf at armory.com wrote:
> I'm not sure if plural(-1) behavior in that version is generally a
> bug or feature, and don't know if it's changed in the current version:
plural(-1) returns "s". If you're expecting negative numbers, use
plural(abs(x))
I guess this could be considered a bug, but the function does behave
exactly as described in the man page:
If one argument is supplied, returns "s" if num is not 1, and
"" if num is 1.
Regards,
David.
More information about the Remind-fans
mailing list