repl_cmd() prints to the repl's output stream

(not STDOUT)
tests for repl shell mode cd feature