if (len == -1)
puts("<INTERRUPT>\n");
else
- rc = run_command(lastcommand, flag);
+ rc = run_command_repeatable(lastcommand, flag);
if (rc <= 0) {
/* invalid command or not repeatable, forget it */
++next;
}
if (rcode == 0 && *line)
- rcode = (cli_simple_run_command(line, 0) >= 0);
+ rcode = (cli_simple_run_command(line, 0) < 0);
return rcode;
}