Lines Matching +defs:shell +defs:dynamic +defs:complete +defs:command
92 /* Struct for built-in command */
93 struct command {
94 char *cmd; /* command name */
95 char *descr; /* command description */
111 void do_command(int shell, char *cmdline);
115 struct command bltins[]={
118 {"exit","Exit from shell()","exit","exit",xit},
124 {"?","Print this help :-)","? [command]","? set",help},
317 struct command *x;
345 printf("\n%s: no such command.\n\n",cmd);
352 * Signal handler for shell()
407 /* Next command, please. */
414 do_command(int shell, char *cmdline)
418 struct command *x;
454 if(shell) {
500 * It works as normal shell does - for each external command it forks
501 * and execs, for each internal command just executes a function.
505 shell(int argc, char **argv)
524 printf("| Built-in shell() (enter '?' for short help on commands) |\n");
599 * normal /etc/rc interpreted by Bourne shell.
643 * - any other line must contain a keyword, or a (nonblocking) command to run.
689 /* Fork shell interface for each console */
735 /* restart shell() on a console, if it died */
766 * Start a shell on ttyv0 (i.e. the console).
932 ttys[i].func=shell;