Unify shell-finding logic
[deliverable/binutils-gdb.git] / gdb / procfs.c
index 6ffe569e690529aa98d2ce26335b090d4642a7ed..ca381a71ae575a1ed7339f60f156ae8662607547 100644 (file)
@@ -3035,11 +3035,11 @@ procfs_target::create_inferior (const char *exec_file,
                                const std::string &allargs,
                                char **env, int from_tty)
 {
-  char *shell_file = getenv ("SHELL");
+  const char *shell_file = get_shell ();
   char *tryname;
   int pid;
 
-  if (shell_file != NULL && strchr (shell_file, '/') == NULL)
+  if (strchr (shell_file, '/') == NULL)
     {
 
       /* We will be looking down the PATH to find shell_file.  If we
This page took 0.026 seconds and 4 git commands to generate.