]> git.draconx.ca Git - dxcommon.git/commit
at-compat.at: Add patch to avoid DJGPP date issue.
authorNick Bowler <nbowler@draconx.ca>
Fri, 22 Dec 2023 05:28:08 +0000 (00:28 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 22 Dec 2023 05:31:16 +0000 (00:31 -0500)
commitf8e7aaad8b528417e396cf07ca2995da8a1ee5eb
treec242a891a1d18c4f4e13a1a313b492bb7f9f9646
parent7029e258114ecffe7a80be495fba50a70e6ab00c
at-compat.at: Add patch to avoid DJGPP date issue.

DJGPP's "date +%s" does not actually work like GNU, although it probably
was supposed to.  It can return a string which begins with zero.  The
testsuite only checks that the output is all digits, so accepts this as
being a working GNU-like date output.

This is then used in an arithmetic expansion, and the shell interprets
this string as octal digits, crapping out if any of those digits are 8
or 9.  If this happens (perhaps depending on the phase of the moon)
then the testsuite crashes before printing the final summary.
snippet/at-compat.at