Ticket #2742: detect csh as tcsh by name

Signed-off-by: Yury V. Zaytsev <yury.zaytsev@traveltainment.de>
This commit is contained in:
Yury V. Zaytsev 2016-03-16 14:58:37 +01:00 committed by Yury V. Zaytsev
parent 7b928e6b94
commit 6dfbebf71e

View File

@ -154,6 +154,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)
{