Ticket #2742: 040-ash_as_subshell_additional.patch
File 040-ash_as_subshell_additional.patch, 3.5 KB (added by kriegaex, 12 years ago) |
---|
-
lib/mcconfig/paths.c
82 82 /* data */ 83 83 { "skins", &mc_data_str, MC_SKINS_SUBDIR}, 84 84 { "fish", &mc_data_str, FISH_PREFIX}, 85 { "ashrc", &mc_data_str, "ashrc"}, 85 86 { "bashrc", &mc_data_str, "bashrc"}, 86 87 { "inputrc", &mc_data_str, "inputrc"}, 87 88 { "extfs.d", &mc_data_str, MC_EXTFS_DIR}, -
tests/lib/mcconfig/user_configs_path.c
96 96 97 97 path_fail_unless (CONF_DATA, MC_SKINS_SUBDIR); 98 98 path_fail_unless (CONF_DATA, FISH_PREFIX); 99 path_fail_unless (CONF_DATA, "ashrc"); 99 100 path_fail_unless (CONF_DATA, "bashrc"); 100 101 path_fail_unless (CONF_DATA, "inputrc"); 101 102 path_fail_unless (CONF_DATA, MC_EXTFS_DIR); -
doc/man/mc.1.in
2408 2408 .\"NODE " The subshell support" 2409 2409 .SH " The subshell support" 2410 2410 The subshell support is a compile time option, that works with the 2411 shells: bash, tcsh and zsh.2411 shells: bash, ash (BusyBox and Debian), tcsh, zsh and fish. 2412 2412 .PP 2413 2413 When the subshell code is activated the Midnight Commander will 2414 2414 spawn a concurrent copy of your shell (the one defined in the … … 2420 2420 environment variables, use shell functions and define aliases that are 2421 2421 valid until you quit the Midnight Commander. 2422 2422 .PP 2423 If you are using2424 2423 .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. 2424 users may specify startup commands in ~/.local/share/mc/bashrc (fallback ~/.bashrc) 2425 and special keyboard maps in ~/.local/share/mc/inputrc (fallback ~/.inputrc). 2426 .PP 2427 .B ash/dash 2428 users (BusyBox or Debian) may specify startup commands in ~/.local/share/mc/ashrc (fallback ~/.profile). 2429 .PP 2430 .B tcsh, zsh, fish 2431 users cannot specify mc-specific startup commands at present. They have to rely on 2432 shell-specific startup files. 2430 2433 .PP 2431 2434 When the subshell code is used, you can suspend applications at any 2432 2435 time with the sequence C\-o and jump back to the Midnight Commander, if 2433 2436 you interrupt an application, you will not be able to run other 2434 2437 external commands until you quit the application you interrupted. 2435 2438 .PP 2436 A n extra added feature of using the subshell is that theprompt2437 displayed by the Midnight Commander is the same prompt that you are 2438 currently using in your shell.2439 A special subshell feature is that Midnight Commander displays a dynamic prompt 2440 like "user@host:current_path> " (with known problems for fish which displays the prompt in 2441 full-screen mode (Ctrl-o), but not when the MC panels are visible). 2439 2442 .PP 2440 2443 The 2441 2444 .\"LINK2" 2442 2445 OPTIONS 2443 2446 .\"OPTIONS" 2444 section has more information on how you can control the subshell code. 2447 section has more information on how you can control subshell usage (-U/-u). 2448 Furthermore, to set a specific subshell different from your current SHELL variable or 2449 login shell defined in /etc/passwd, you may call MC like this: 2450 .B SHELL=/bin/myshell mc 2445 2451 .\"NODE "Chmod" 2446 2452 .SH "Chmod" 2447 2453 The Chmod window is used to change the attribute bits in a group of