Files
percona-toolkit/lib/bash
Brian Fraser fraserb@gmail.com 12bd26022a Fix a section() bug.
Turns out that awk's indexes are documented to start from 1;
So what happens if you use 0? Apparently it's undefined behavior, so
substr(var, 0, 5);
and
substr(var, 1, 5);
May or may not actually do the same thing. In Debian 6, the former
doesn't quite work, and actually returns something like substr(var, 1, 4),
which broke section()'s output.
2012-04-03 10:55:51 -03:00
..
2012-04-02 19:25:17 -03:00
2012-04-03 10:55:51 -03:00
2012-04-02 19:25:17 -03:00
2012-04-02 19:25:17 -03:00