[PATCH v2 1/2] cmd: Fix out-of-bound access when parsing commands that start with >.