Lines Matching refs:path
55 * This ensures that a full path search will not have to be done for them
99 STATIC int builtinloc = -1; /* index in path of %builtin, or -1 */
119 shellexec(char **argv, char **envp, const char *path, int idx, int vforked)
129 while ((cmdname = padvance(&path, argv[0])) != NULL) {
280 * Do a path search. The variable path (passed by reference) should be
281 * set to the start of the path before the first call; padvance will update
283 * the possible path expansions in sequence. If an option (indicated by
284 * a percent sign) appears in the path entry then the global variable
292 padvance(const char **path, const char *name)
299 if (*path == NULL)
301 start = *path;
319 *path = p + 1;
321 *path = NULL;
380 const char *path;
386 path = pathval();
388 name = padvance(&path, cmdp->cmdname);
427 find_command(char *name, struct cmdentry *entry, int act, const char *path)
460 if (path != pathval())
463 if (act & DO_ALTPATH && strstr(path, "%builtin") != NULL)
495 /* If %builtin not in path, check for builtin next */
500 /* We have to search path. */
512 while ((fullname = padvance(&path, name)) != NULL) {
527 /* if rehash, don't redo absolute path names */
1008 const char *path = pathval();
1012 name = padvance(&path, arg);