Lines Matching refs:newargz
4976 char **newargz;
4982 newargz = XMALLOC(char *, argc+2);
4986 newargz[0] = (char *) xstrdup("$SHELL");
4990 newargz[1] = find_executable(argv[0]);
4991 if (newargz[1] == NULL)
4993 DEBUG("(main) found exe at : %s\n",newargz[1]);
4995 /* so make sure newargz[1] doesn't end in .exe */
4996 strendzap(newargz[1],".exe");
4998 newargz[i+1] = xstrdup(argv[i]);
4999 newargz[argc+1] = NULL;
5003 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5012 execv("$SHELL",(char const **)newargz);
5017 execv("$SHELL",newargz);