Ticket #2742: 040-ash_as_subshell_additional.patch

File 040-ash_as_subshell_additional.patch, 3.5 KB (added by kriegaex, 12 years ago)

Improved subshell chapter in online help plus some minor code changes

  • lib/mcconfig/paths.c

     
    8282    /* data */ 
    8383    { "skins",                                 &mc_data_str, MC_SKINS_SUBDIR}, 
    8484    { "fish",                                  &mc_data_str, FISH_PREFIX}, 
     85    { "ashrc",                                 &mc_data_str, "ashrc"}, 
    8586    { "bashrc",                                &mc_data_str, "bashrc"}, 
    8687    { "inputrc",                               &mc_data_str, "inputrc"}, 
    8788    { "extfs.d",                               &mc_data_str, MC_EXTFS_DIR}, 
  • tests/lib/mcconfig/user_configs_path.c

     
    9696 
    9797    path_fail_unless (CONF_DATA, MC_SKINS_SUBDIR); 
    9898    path_fail_unless (CONF_DATA, FISH_PREFIX); 
     99    path_fail_unless (CONF_DATA, "ashrc"); 
    99100    path_fail_unless (CONF_DATA, "bashrc"); 
    100101    path_fail_unless (CONF_DATA, "inputrc"); 
    101102    path_fail_unless (CONF_DATA, MC_EXTFS_DIR); 
  • doc/man/mc.1.in

     
    24082408.\"NODE "  The subshell support" 
    24092409.SH "  The subshell support" 
    24102410The subshell support is a compile time option, that works with the 
    2411 shells: bash, tcsh and zsh. 
     2411shells: bash, ash (BusyBox and Debian), tcsh, zsh and fish. 
    24122412.PP 
    24132413When the subshell code is activated the Midnight Commander will 
    24142414spawn a concurrent copy of your shell (the one defined in the 
     
    24202420environment variables, use shell functions and define aliases that are 
    24212421valid until you quit the Midnight Commander. 
    24222422.PP 
    2423 If you are using 
    24242423.B bash 
    2425 you can specify startup 
    2426 commands for the subshell in your ~/.local/share/mc/bashrc file and 
    2427 special keyboard maps in the ~/.local/share/mc/inputrc file. 
    2428 .B tcsh 
    2429 users may specify startup commands in the ~/.local/share/mc/tcshrc file. 
     2424users may specify startup commands in ~/.local/share/mc/bashrc (fallback ~/.bashrc) 
     2425and special keyboard maps in ~/.local/share/mc/inputrc (fallback ~/.inputrc). 
     2426.PP 
     2427.B ash/dash 
     2428users (BusyBox or Debian) may specify startup commands in ~/.local/share/mc/ashrc (fallback ~/.profile). 
     2429.PP 
     2430.B tcsh, zsh, fish 
     2431users cannot specify mc-specific startup commands at present. They have to rely on 
     2432shell-specific startup files. 
    24302433.PP 
    24312434When the subshell code is used, you can suspend applications at any 
    24322435time with the sequence C\-o and jump back to the Midnight Commander, if 
    24332436you interrupt an application, you will not be able to run other 
    24342437external commands until you quit the application you interrupted. 
    24352438.PP 
    2436 An extra added feature of using the subshell is that the prompt 
    2437 displayed by the Midnight Commander is the same prompt that you are 
    2438 currently using in your shell. 
     2439A special subshell feature is that Midnight Commander displays a dynamic prompt 
     2440like "user@host:current_path> " (with known problems for fish which displays the prompt in 
     2441full-screen mode (Ctrl-o), but not when the MC panels are visible). 
    24392442.PP 
    24402443The 
    24412444.\"LINK2" 
    24422445OPTIONS 
    24432446.\"OPTIONS" 
    2444 section has more information on how you can control the subshell code. 
     2447section has more information on how you can control subshell usage (-U/-u). 
     2448Furthermore, to set a specific subshell different from your current SHELL variable or 
     2449login shell defined in /etc/passwd, you may call MC like this: 
     2450.B SHELL=/bin/myshell mc 
    24452451.\"NODE "Chmod" 
    24462452.SH "Chmod" 
    24472453The Chmod window is used to change the attribute bits in a group of