FreeBSD/sys/ddb/db_command.c
/*
 * 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.
 */
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.

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.
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 . 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 .
void
db_command_script(const char *command)
{
	db_prev = db_next = db_dot;
	db_inject_line(command);
	db_command(&db_last_command, &db_cmd_table,  0);
}
void db_command_script ( const char * command ) { db_prev = db_next = db_dot ; db_inject_line ( command ) ; db_command ( & db_last_command , & db_cmd_table , 0 ) ; }
Execute a command on behalf of a script.
Execute a command on behalf of a script .
/* dopager */