Changes between Initial Version and Version 1 of Ticket #3063, comment 5


Ignore:
Timestamp:
12/17/13 07:42:56 (10 years ago)
Author:
andrew_b
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3063, comment 5

    initial v1  
    1 When mc starts, it created the child process (the subshell) using fork(2). From this moment, we have two independent processes: mc itself and mc's subshell. In order to synchronize current working directory in both processes, mc sends "cd path" command to subshell. There is no way other than sending command from first process to second one to change some internal state of second process. 
     1When mc starts, it creates the child process (the subshell) using fork(2). From this moment, we have two independent processes: mc itself and mc's subshell. In order to synchronize current working directory in both processes, mc sends "cd path" command to subshell. There is no way other than sending command from first process to second one to change some internal state of second process. 
    22 
    33Subshell receives the "cd path" command. Since it is a command, it is stored in subshell's history. Bash and zsh provide some ways to exclude some commands being stored in history: HISTCONTROL=ignorespace in bash, HIST_IGNORE_SPACE in zsh (see #3124 for some details). Unfortunately, csh doesn't.