Ticket #2742: 050-ash_as_subshell_additional___mc-4.8.8.patch
File 050-ash_as_subshell_additional___mc-4.8.8.patch, 3.1 KB (added by er13, 11 years ago) |
---|
-
lib/mcconfig/paths.c
84 84 /* data */ 85 85 { "skins", &mc_data_str, MC_SKINS_SUBDIR}, 86 86 { "fish", &mc_data_str, FISH_PREFIX}, 87 { "ashrc", &mc_data_str, "ashrc"}, 87 88 { "bashrc", &mc_data_str, "bashrc"}, 88 89 { "inputrc", &mc_data_str, "inputrc"}, 89 90 { "extfs.d", &mc_data_str, MC_EXTFS_DIR}, -
tests/lib/mcconfig/user_configs_path.c
138 138 }, 139 139 { /* 0. */ 140 140 CONF_DATA, 141 "ashrc" 142 }, 143 { /* 0. */ 144 CONF_DATA, 141 145 "bashrc" 142 146 }, 143 147 { /* 0. */ -
doc/man/mc.1.in
2434 2434 .\"NODE " The subshell support" 2435 2435 .SH " The subshell support" 2436 2436 The subshell support is a compile time option, that works with the 2437 shells: bash, tcsh and zsh.2437 shells: bash, ash (BusyBox and Debian), tcsh, zsh and fish. 2438 2438 .PP 2439 2439 When the subshell code is activated the Midnight Commander will 2440 2440 spawn a concurrent copy of your shell (the one defined in the … … 2446 2446 environment variables, use shell functions and define aliases that are 2447 2447 valid until you quit the Midnight Commander. 2448 2448 .PP 2449 If you are using2450 2449 .B bash 2451 you can specify startup 2452 commands for the subshell in your ~/.local/share/mc/bashrc file and 2453 special keyboard maps in the ~/.local/share/mc/inputrc file. 2454 .B tcsh 2455 users may specify startup commands in the ~/.local/share/mc/tcshrc file. 2450 users may specify startup commands in ~/.local/share/mc/bashrc (fallback ~/.bashrc) 2451 and special keyboard maps in ~/.local/share/mc/inputrc (fallback ~/.inputrc). 2452 .PP 2453 .B ash/dash 2454 users (BusyBox or Debian) may specify startup commands in ~/.local/share/mc/ashrc (fallback ~/.profile). 2455 .PP 2456 .B tcsh, zsh, fish 2457 users cannot specify mc-specific startup commands at present. They have to rely on 2458 shell-specific startup files. 2456 2459 .PP 2457 2460 When the subshell code is used, you can suspend applications at any 2458 2461 time with the sequence C\-o and jump back to the Midnight Commander, if 2459 2462 you interrupt an application, you will not be able to run other 2460 2463 external commands until you quit the application you interrupted. 2461 2464 .PP 2462 A n extra added feature of using the subshell is that theprompt2463 displayed by the Midnight Commander is the same prompt that you are 2464 currently using in your shell.2465 A special subshell feature is that Midnight Commander displays a dynamic prompt 2466 like "user@host:current_path> " (with known problems for fish which displays the prompt in 2467 full-screen mode (Ctrl-o), but not when the MC panels are visible). 2465 2468 .PP 2466 2469 The 2467 2470 .\"LINK2" 2468 2471 OPTIONS 2469 2472 .\"OPTIONS" 2470 section has more information on how you can control the subshell code. 2473 section has more information on how you can control subshell usage (-U/-u). 2474 Furthermore, to set a specific subshell different from your current SHELL variable or 2475 login shell defined in /etc/passwd, you may call MC like this: 2476 .B SHELL=/bin/myshell mc 2471 2477 .\"NODE "Chmod" 2472 2478 .SH "Chmod" 2473 2479 The Chmod window is used to change the attribute bits in a group of