[Bug 57809] New: cmd: Incorrect substring expansion of last character (e.g. `!MY_STR:~1!`)