Fixed varname typos in the single-shot prompt command.
Copy-pasta errors in code taken from cmdloop.