Ticket #2742: 0001-Ticket-2742-detect-csh-as-tcsh-by-name.patch

File 0001-Ticket-2742-detect-csh-as-tcsh-by-name.patch, 952 bytes (added by zaytsev-work, 3 years ago)
  • lib/shell.c

    From 46e04ce6056b6199b9ec45d24c05963d7ec6e3c9 Mon Sep 17 00:00:00 2001
    From: "Yury V. Zaytsev" <yury.zaytsev@traveltainment.de>
    Date: Wed, 16 Mar 2016 14:58:37 +0100
    Subject: [PATCH] Ticket #2742: detect csh as tcsh by name
    
    Signed-off-by: Yury V. Zaytsev <yury.zaytsev@traveltainment.de>
    ---
     lib/shell.c | 6 ++++++
     1 file changed, 6 insertions(+)
    
    diff --git a/lib/shell.c b/lib/shell.c
    index f6b0bf0..7b2f689 100644
    a b mc_shell_recognize_and_fill_type (mc_shell_t * mc_shell) 
    162162        mc_shell->type = SHELL_TCSH; 
    163163        mc_shell->name = "tcsh"; 
    164164    } 
     165    else if (strstr (mc_shell->path, "/csh") != NULL 
     166             || strstr (mc_shell->real_path, "/csh") != NULL) 
     167    { 
     168        mc_shell->type = SHELL_TCSH; 
     169        mc_shell->name = "csh"; 
     170    } 
    165171    else if (strstr (mc_shell->path, "/fish") != NULL 
    166172             || strstr (mc_shell->real_path, "/fish") != NULL) 
    167173    {