Add csh to the list of fallback shell options

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2016-04-24 17:17:48 +02:00
parent 6dfbebf71e
commit 0430ec719b

View File

@ -76,6 +76,8 @@ mc_shell_get_installed_in_system (void)
mc_shell->path = g_strdup ("/bin/zsh"); mc_shell->path = g_strdup ("/bin/zsh");
else if (access ("/bin/tcsh", X_OK) == 0) else if (access ("/bin/tcsh", X_OK) == 0)
mc_shell->path = g_strdup ("/bin/tcsh"); 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 /* 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 * 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 * present it as a subshell without the user's explicit intention. We rather