mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-23 01:00:15 +08:00
12bd26022a
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.