From f699dd76a0437096ce593ebb2bc3d3781490a542 Mon Sep 17 00:00:00 2001
From: Mooffie <mooffie@gmail.com>
Date: Sat, 14 Nov 2015 22:49:58 +0200
Subject: [PATCH] Better subshell doc.
---
doc/man/mc.1.in | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in
index 2e79e33..c54bcbb 100644
a
|
b
|
is substituted. |
2459 | 2459 | The subshell support is a compile time option, that works with the |
2460 | 2460 | shells: bash, ash (BusyBox and Debian), tcsh, zsh and fish. |
2461 | 2461 | .PP |
2462 | | When the subshell code is activated the Midnight Commander will |
| 2462 | When the subshell support is active, Midnight Commander will |
2463 | 2463 | spawn a concurrent copy of your shell (the one defined in the |
2464 | 2464 | .B SHELL |
2465 | 2465 | variable and if it is not defined, then the one in the /etc/passwd |
… |
… |
users (BusyBox or Debian) may specify startup commands in ~/.local/share/mc/ashr |
2480 | 2480 | users cannot specify mc-specific startup commands at present. They have to rely on |
2481 | 2481 | shell-specific startup files. |
2482 | 2482 | .PP |
2483 | | When the subshell code is used, you can suspend applications at any |
| 2483 | The following paragraphs are relevant only when the subshell support is |
| 2484 | active: |
| 2485 | .PP |
| 2486 | You can suspend applications at any |
2484 | 2487 | time with the sequence C\-o and jump back to the Midnight Commander, if |
2485 | 2488 | you interrupt an application, you will not be able to run other |
2486 | 2489 | external commands until you quit the application you interrupted. |
2487 | 2490 | .PP |
2488 | | A special subshell feature (except Bash shell) is that Midnight Commander displays a dynamic prompt |
2489 | | like "user@host:current_path> " (with known problems for fish which displays the prompt in |
2490 | | full-screen mode (Ctrl-o), but not when the MC panels are visible). |
| 2491 | The basic prompt displayed by Midnight Commander is of the form |
| 2492 | "user@host:current_path$ ". When using a capable shell, like Bash, the |
| 2493 | prompt displayed by Midnight Commander will be the same prompt that you |
| 2494 | are currently using in your shell. |
2491 | 2495 | .PP |
2492 | | An extra added feature for Bash shell of using the subshell is that the prompt |
2493 | | displayed by the Midnight Commander is the same prompt that you are |
2494 | | currently using in your shell. |
| 2496 | (There's a known problem when using fish: the prompt is displayed only in |
| 2497 | full screen mode (Ctrl-o), not when the panels are visible.) |
2495 | 2498 | .PP |
2496 | 2499 | The |
2497 | 2500 | .\"LINK2" |