mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00

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.