Lines Matching defs:shell
63 char *cmd, *name, *p, *shell, *slashp, *tmpshell;
108 * Figure out the shell and name arguments to pass to execl()
109 * in exec_shell(). Always malloc() shell and just set name
110 * to point at the last part of shell if there are any backslashes,
113 * shell with it.
115 shell = name = NULL;
117 shell = (tmpshell != NULL) ? strdup(tmpshell) : strdup(_PATH_BSHELL);
118 if (shell == NULL)
120 slashp = strrchr(shell, '/');
121 name = (slashp != NULL) ? slashp + 1 : shell;
193 if (exec_shell(sbuf_data(cmdbuf), shell, name))
202 free(shell);
208 * Execute a shell command using passed use_shell and use_name