Lines Matching refs:newargz
5025 char **newargz;
5031 newargz = XMALLOC(char *, argc+2);
5035 newargz[0] = (char *) xstrdup("$SHELL");
5039 newargz[1] = find_executable(argv[0]);
5040 if (newargz[1] == NULL)
5042 DEBUG("(main) found exe at : %s\n",newargz[1]);
5044 /* so make sure newargz[1] doesn't end in .exe */
5045 strendzap(newargz[1],".exe");
5047 newargz[i+1] = xstrdup(argv[i]);
5048 newargz[argc+1] = NULL;
5052 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5061 execv("$SHELL",(char const **)newargz);
5066 execv("$SHELL",newargz);