Lines Matching refs:shell

2091 	char *shell;  in exec_command()
2100 shell = p->value; in exec_command()
2102 shell = 0; in exec_command()
2104 shell = getenv ("SHELL"); in exec_command()
2106 if (shell == 0) in exec_command()
2107 shell = default_shell; in exec_command()
2119 new_argv[0] = shell; in exec_command()
2138 pid = spawnvpe (P_NOWAIT, shell, new_argv, envp); in exec_command()
2142 execvp (shell, new_argv); in exec_command()
2145 error (NILF, _("%s: Shell program not found"), shell); in exec_command()
2147 perror_with_name ("execvp: ", shell); in exec_command()
2199 construct_command_argv_internal (char *line, char **restp, char *shell, in construct_command_argv_internal() argument
2340 if (shell == 0) in construct_command_argv_internal()
2341 shell = default_shell; in construct_command_argv_internal()
2343 else if (strcmp (shell, default_shell)) in construct_command_argv_internal()
2345 char *s1 = _fullpath(NULL, shell, 0); in construct_command_argv_internal()
2359 else if (stricmp (shell, default_shell)) in construct_command_argv_internal()
2364 default_shell, shell)); in construct_command_argv_internal()
2365 unixy_shell = _is_unixy_shell (shell); in construct_command_argv_internal()
2368 default_shell = xstrdup (shell); in construct_command_argv_internal()
2388 else if (strcmp (shell, default_shell)) in construct_command_argv_internal()
2692 unsigned int shell_len = strlen (shell); in construct_command_argv_internal()
2710 bcopy (shell, ap, shell_len); in construct_command_argv_internal()
2805 new_argv[0] = xstrdup (shell); in construct_command_argv_internal()
2872 size_t sh_len = strlen (shell); in construct_command_argv_internal()
2879 memcpy (new_argv[0], shell, sh_len + 1); in construct_command_argv_internal()
2929 char *shell, *ifs; in construct_command_argv() local
2978 shell = allocated_variable_expand_for_file ("$(SHELL)", file); in construct_command_argv()
2984 if (shell) { in construct_command_argv()
2985 char *p = w32ify (shell, 0); in construct_command_argv()
2986 strcpy (shell, p); in construct_command_argv()
3007 if (unixroot && shell && strcmp (shell, last_shell) != 0 in construct_command_argv()
3008 && (shell[0] == '/' || shell[0] == '\\')) in construct_command_argv()
3011 size_t size = strlen (shell); in construct_command_argv()
3013 memcpy (buf, shell, size); in construct_command_argv()
3015 if (access (shell, F_OK) != 0 && access (buf, F_OK) != 0) in construct_command_argv()
3024 shell = buf; in construct_command_argv()
3039 argv = construct_command_argv_internal (line, restp, shell, ifs, batch_filename_ptr); in construct_command_argv()
3041 free (shell); in construct_command_argv()