Lines Matching refs:new_argv

2092 	char **new_argv;  in exec_command()
2118 new_argv = (char **) alloca ((1 + argc + 1) * sizeof (char *)); in exec_command()
2119 new_argv[0] = shell; in exec_command()
2124 new_argv[1] = "/c"; in exec_command()
2130 new_argv[i] = argv[0]; in exec_command()
2133 new_argv[i + argc] = argv[argc]; in exec_command()
2138 pid = spawnvpe (P_NOWAIT, shell, new_argv, envp); in exec_command()
2142 execvp (shell, new_argv); in exec_command()
2316 char **new_argv = 0; in construct_command_argv_internal() local
2401 new_argv = (char **) xmalloc (i * sizeof (char *)); in construct_command_argv_internal()
2404 ap = new_argv[0] = argstr = (char *) xmalloc (i); in construct_command_argv_internal()
2421 if (ap == new_argv[0] || *(ap-1) == '\0') in construct_command_argv_internal()
2499 if (ap == new_argv[i]) in construct_command_argv_internal()
2556 new_argv[++i] = ap; in construct_command_argv_internal()
2576 if (streq (sh_cmds[j], new_argv[0])) in construct_command_argv_internal()
2581 && strcasecmp (sh_cmds[j], new_argv[0]) == 0) in construct_command_argv_internal()
2605 if (new_argv[i][0] != '\0' || last_argument_was_empty) in construct_command_argv_internal()
2607 new_argv[i] = 0; in construct_command_argv_internal()
2613 if (streq (sh_cmds[j], new_argv[0])) in construct_command_argv_internal()
2617 if (new_argv[0] == 0) in construct_command_argv_internal()
2621 free ((char *)new_argv); in construct_command_argv_internal()
2625 return new_argv; in construct_command_argv_internal()
2630 if (new_argv != 0) in construct_command_argv_internal()
2634 free ((char *)new_argv); in construct_command_argv_internal()
2664 new_argv = (char **) xmalloc (2 * sizeof (char *)); in construct_command_argv_internal()
2665 new_argv[0] = buffer; in construct_command_argv_internal()
2666 new_argv[1] = 0; in construct_command_argv_internal()
2776 new_argv = (char **) xmalloc(2 * sizeof (char *)); in construct_command_argv_internal()
2777 new_argv[0] = xstrdup (""); in construct_command_argv_internal()
2778 new_argv[1] = NULL; in construct_command_argv_internal()
2803 new_argv = (char **) xmalloc(3 * sizeof (char *)); in construct_command_argv_internal()
2805 new_argv[0] = xstrdup (shell); in construct_command_argv_internal()
2806 new_argv[1] = *batch_filename_ptr; /* only argv[0] gets freed later */ in construct_command_argv_internal()
2808 new_argv[0] = xstrdup (*batch_filename_ptr); in construct_command_argv_internal()
2809 new_argv[1] = NULL; in construct_command_argv_internal()
2811 new_argv[2] = NULL; in construct_command_argv_internal()
2815 new_argv = construct_command_argv_internal (new_line, (char **) NULL, in construct_command_argv_internal()
2875 new_argv = (char **) xmalloc (4 * sizeof (char *)); in construct_command_argv_internal()
2878 new_argv[0] = (char *) malloc (sh_len + line_len + 5); in construct_command_argv_internal()
2879 memcpy (new_argv[0], shell, sh_len + 1); in construct_command_argv_internal()
2880 new_argv[1] = new_argv[0] + sh_len + 1; in construct_command_argv_internal()
2881 memcpy (new_argv[1], "/c", 3); in construct_command_argv_internal()
2882 new_argv[2] = new_argv[1] + 3; in construct_command_argv_internal()
2883 memcpy (new_argv[2], new_line, line_len + 1); in construct_command_argv_internal()
2884 new_argv[3] = NULL; in construct_command_argv_internal()
2893 new_argv = (char **) xmalloc (sizeof (char *)); in construct_command_argv_internal()
2895 new_argv[0] = xmalloc (line_len + 1); in construct_command_argv_internal()
2896 strncpy (new_argv[0], in construct_command_argv_internal()
2898 new_argv[0][line_len] = '\0'; in construct_command_argv_internal()
2908 return new_argv; in construct_command_argv_internal()