Ticket #2104: subshell.diff

File subshell.diff, 717 bytes (added by Klimontov, 11 years ago)
  • .c

    diff --git a/subshell1.c b/subshell.c
    index b36fbbc..5ca60b5 100644
    old new do_subshell_chdir (const vfs_path_t * vpath, gboolean update_prompt) 
    11691169        return; 
    11701170    } 
    11711171 
    1172     /* The initial space keeps this out of the command history (in bash 
     1172    if (strstr (mc_global.tty.shell, "/bash") || getenv ("BASH")) 
     1173        {                
     1174                static char erase[] = "   ";             
     1175                erase[1] = shell_mode.c_cc[VKILL]; // def CKILL = CTRL('u') 
     1176                write_all (mc_global.tty.subshell_pty, erase, strlen(erase)); 
     1177        } 
     1178         
     1179        /* The initial space keeps this out of the command history (in bash 
    11731180       because we set "HISTCONTROL=ignorespace") */ 
    11741181    write_all (mc_global.tty.subshell_pty, " cd ", 4); 
    11751182