Lines Matching refs:num_cmds
703 int num_cmds; /* total number of commands in pipe */ member
724 ((pi)->num_cmds == 0 IF_HAS_KEYWORDS( && (pi)->res_word == RES_NONE))
3577 for (i = 0; i < pi->num_cmds; i++) { in free_pipe()
3709 pi->num_cmds, in debug_print_tree()
3715 while (prn < pi->num_cmds) { in debug_print_tree()
3783 debug_printf_parse("done_command: skipping null cmd, num_cmds=%d\n", pi->num_cmds); in done_command()
3786 pi->num_cmds++; in done_command()
3787 debug_printf_parse("done_command: ++num_cmds=%d\n", pi->num_cmds); in done_command()
3790 debug_printf_parse("done_command: initializing, num_cmds=%d\n", pi->num_cmds); in done_command()
3795 pi->cmds = xrealloc(pi->cmds, sizeof(*pi->cmds) * (pi->num_cmds+1)); in done_command()
3796 ctx->command = command = &pi->cmds[pi->num_cmds]; in done_command()
3803 return pi->num_cmds; /* used only for 0/nonzero check */ in done_command()
3838 pi->num_cmds = 1; in done_pipe()
4544 pi->num_cmds, in fetch_heredocs()
4547 for (i = 0; i < pi->num_cmds; i++) { in fetch_heredocs()
4722 pipe_list->num_cmds = 1; in parse_group()
5455 if (pi->num_cmds == 0 in parse_stream()
5632 if (pi->num_cmds != 0 /* check #1 */ in parse_stream()
8856 job->cmds = xzalloc(sizeof(pi->cmds[0]) * pi->num_cmds); in insert_job_into_table()
8858 for (i = 0; i < pi->num_cmds; i++) { in insert_job_into_table()
8879 i = pi->num_cmds; in job_exited_or_stopped()
8913 i = fg_pipe->num_cmds; in process_wait_result()
8937 && i == fg_pipe->num_cmds-1 in process_wait_result()
8980 for (i = 0; i < pi->num_cmds; i++) { in process_wait_result()
9212 debug_printf_exec("run_pipe start: members:%d\n", pi->num_cmds); in run_pipe()
9249 if (pi->num_cmds != 1 in run_pipe()
9527 while (cmd_no < pi->num_cmds) { in run_pipe()
9548 if (cmd_no < pi->num_cmds) in run_pipe()
9643 if (cmd_no < pi->num_cmds) in run_pipe()
9898 if (pi->num_cmds == 0) { in run_list()
9908 debug_printf_exec(": run_pipe with %d members\n", pi->num_cmds); in run_list()
9959 G.last_bg_pid = pi->cmds[pi->num_cmds - 1].pid; in run_list()
10047 debug_printf_exec(": run_list: 1st pipe with %d cmds\n", pi->num_cmds); in run_and_free_list()
11763 debug_printf_jobs("reviving %d procs, pgrp %d\n", pi->num_cmds, pi->pgrp); in builtin_fg_bg()
11764 for (i = 0; i < pi->num_cmds; i++) { in builtin_fg_bg()
11830 n = G_interactive_fd ? 1 : pi->num_cmds; in builtin_kill()