Merge branch '2742_csh_as_tcsh_fix'

This commit is contained in:
Yury V. Zaytsev 2016-04-25 21:44:15 +02:00
commit 23c00cf33f

View File

@ -76,6 +76,8 @@ mc_shell_get_installed_in_system (void)
mc_shell->path = g_strdup ("/bin/zsh");
else if (access ("/bin/tcsh", X_OK) == 0)
mc_shell->path = g_strdup ("/bin/tcsh");
else if (access ("/bin/csh", X_OK) == 0)
mc_shell->path = g_strdup ("/bin/csh");
/* No fish as fallback because it is so much different from other shells and
* in a way exotic (even though user-friendly by name) that we should not
* present it as a subshell without the user's explicit intention. We rather
@ -154,6 +156,12 @@ mc_shell_recognize_real_path (mc_shell_t * mc_shell)
mc_shell->type = SHELL_TCSH;
mc_shell->name = "tcsh";
}
else if (strstr (mc_shell->path, "/csh") != NULL
|| strstr (mc_shell->real_path, "/csh") != NULL)
{
mc_shell->type = SHELL_TCSH;
mc_shell->name = "csh";
}
else if (strstr (mc_shell->path, "/fish") != NULL
|| strstr (mc_shell->real_path, "/fish") != NULL)
{