Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: New D01 test failure



On Mar 2,  7:19pm, Vin Shelton wrote:
} Subject: New D01 test failure
}
} I'm seeing a new failure in the prompt expansion test.

This seems to do it.  The only bug was that (strip) should have
been (!strip), but I reversed the order of the || contitions to
match all the other uses of (!strip) in the same case statement.

Index: Src/utils.c
--- ../current/Src/utils.c    2009-03-02 17:57:29.000000000 -0800
+++ Src/utils.c 2009-03-02 21:15:36.000000000 -0800
@@ -2460,7 +2460,7 @@
                return -1;
            switch (*fmt++) {
            case 'd':
-               if (strip || tm->tm_mday > 9)
+               if (tm->tm_mday > 9 || !strip)
                    *buf++ = '0' + tm->tm_mday / 10;
                *buf++ = '0' + tm->tm_mday % 10;
                break;
@@ -3090,6 +3090,7 @@
     for (t0 = 0240; t0 != 0400; t0++)
        typtab[t0] = IALPHA | IALNUM | IIDENT | IUSER | IWORD;
 #endif



Messages sorted by: Reverse Date, Date, Thread, Author