Lines Matching refs:cmd
37 char *cmd; /* the current command */ member
53 char cmd[BUFSIZ]; in runcmdshell() local
63 getcmd(curdir, cmd, name, &alist); in runcmdshell()
64 switch (cmd[0]) { in runcmdshell()
69 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
82 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
97 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
110 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
123 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
149 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell()
160 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell()
171 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
175 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell()
182 if (strncmp(cmd, "verbose", strlen(cmd)) != 0) in runcmdshell()
196 if (strncmp(cmd, "setmodes", strlen(cmd)) != 0) in runcmdshell()
204 if (strncmp(cmd, "what", strlen(cmd)) != 0) in runcmdshell()
212 if (strncmp(cmd, "Debug", strlen(cmd)) != 0) in runcmdshell()
227 fprintf(stderr, "%s: unknown command; type ? for help\n", cmd); in runcmdshell()
244 getcmd(curdir, cmd, name, ap) in getcmd() argument
245 char *curdir, *cmd, *name; in getcmd()
273 (void) strcpy(cmd, "quit");
282 cp = copynext(input, cmd);
283 ap->cmd = cmd;
701 fprintf(stderr, "%s: out of memory\n", ap->cmd);
715 fprintf(stderr, "%s: out of memory\n", ap->cmd);