Home | History | Annotate | Download | only in pending

Lines Matching defs:command

30   char *command;
96 static void add_new_action(uint8_t action,char *command,char *term)
103 if (!(strcmp(x->command, command)) && !(strcmp(x->terminal_name, term))) {
116 x->command = xstrdup(command);
126 char *p, *q, *extracted_token, *tty_name = NULL, *command = NULL, *tmp;
144 tty_name = command = NULL;
168 command = xstrdup(extracted_token);
179 free(command);
182 if (action) add_new_action(action, command, tty_name);
184 free(command);
191 static void run_command(char *command)
194 int hyphen = (command[0]=='-');
196 command = command + hyphen;
197 if (!strpbrk(command, "?<>'\";[]{}\\|=()*&^$!`~")) {
202 next_command = strncpy(toybuf, command - hyphen, sizeof(toybuf));
204 command = next_command + hyphen;
213 snprintf(toybuf, sizeof(toybuf), "exec %s", command);
214 command = "-/bin/sh"+1;
221 execvp(command, final_command);
222 error_msg("unable to run %s",command);
268 run_command(x->command);
399 run_command(x->command);