Home | History | Annotate | Download | only in pending

Lines Matching defs:line

22  * TODO: // Handle embedded NUL bytes in the command line.
39 -c command line to execute
49 Exit shell. If no return value supplied on command line, use value
157 Support multiple commands on the same command line. This includes
202 char *cmdline; // Unparsed line for display purposes
206 // Parse one word from the command line, appending one or more argv[] entries
214 // Detect end of line (and truncate line at comment)
231 // Parse a line of text into a pipeline.
232 // Returns a pointer to the next line.
234 static char *parse_pipeline(char *cmdline, struct pipeline *line)
236 struct command **cmd = &(line->cmd);
237 char *start = line->cmdline = cmdline;
241 line->cmdline = cmdline;
247 // Skip leading whitespace and detect end of line.
250 line->cmdlinelen = start-cmdline;
274 line->cmdlinelen = start-cmdline;
280 static void run_pipeline(struct pipeline *line)
283 struct command *cmd = line->cmd;
328 // Parse a command line and do what it says to do.
331 struct pipeline line;
334 // Loop through commands in this line
340 memset(&line,0,sizeof(struct pipeline));
341 start = parse_pipeline(start, &line);
342 if (!line.cmd) break;
346 run_pipeline(&line);
347 llist_traverse(line.cmd, free_cmd);