* Execute a command on behalf of a script. The caller is responsible for * making sure that the command string is < DB_MAXLINE or it will be * truncated. * * XXXRW: Runs by injecting faked input into DDB input stream; it would be * nicer to use an alternative approach that didn't mess with the previous * command buffer. */
| 546 | * command buffer. |
| 547 | */ |
| 548 | void |
| 549 | db_command_script(const char *command) |
| 550 | { |
| 551 | db_prev = db_next = db_dot; |
| 552 | db_inject_line(command); |
| 553 | db_command(&db_last_command, &db_cmd_table, /* dopager */ 0); |
| 554 | } |
| 555 | |
| 556 | void |
| 557 | db_error(const char *s) |
no test coverage detected