Do not use redirection characters in your shell prompt
This seems to be more of "don't paste garbage into a terminal, especially as root."  With a sidenote that it might be safer if your custom application command interpreter didn't use > as the prompt character.  I note that Bourne shell defaults to the safer % and # characters for the prompt.  The # character for root is especially safe.