The one-shot output-route check read the first word as an abbreviation, so `p 1`, `s` and `d 1` matched python, source and define, and `t 1` matched tty, and were refused before GDB started. GDB resolves its built-in aliases first, so resolve the four that shadow those prefixes (print, step, delete, thread) in one helper both checks share. Fixes #5098