MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_command_script

Function db_command_script

freebsd/ddb/db_command.c:548–554  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

546 * command buffer.
547 */
548void
549db_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
556void
557db_error(const char *s)

Callers 1

db_script_execFunction · 0.85

Calls 2

db_inject_lineFunction · 0.85
db_commandFunction · 0.85

Tested by

no test coverage detected