]> git.notmuchmail.org Git - notmuch/commit
support for generating decreasing dates in bash 4.0 and 4.1
authorTomi Ollila <tomi.ollila@iki.fi>
Mon, 10 Feb 2014 21:15:00 +0000 (23:15 +0200)
committerDavid Bremner <david@tethera.net>
Sun, 9 Mar 2014 13:09:51 +0000 (10:09 -0300)
commite79d2fc993dcd6fb328c31b2a0466cf7413a8276
tree0ddb3f4f7b8eb3cb8c26141ef21f3cd6c1f1c84b
parentd8ba7bee7d3dd3b7b47c7bfd96434effef7227f0
support for generating decreasing dates in bash 4.0 and 4.1

The printf builtin "%(fmt)T" specifier (which allows time values
to use strftime-like formatting) is introduced in bash 4.2.

Trying to execute this in pre-4.2 bash will fail -- and if this
happens execute the fallback piece of perl code to do the same thing.
test/test-lib.sh