revert changes related to BASH shell prompt

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2013-09-02 20:24:59 +03:00 committed by Slava Zanko
parent bf1ff69fb8
commit 0d6d1d0d5c
2 changed files with 6 additions and 3 deletions

View File

@ -2485,10 +2485,14 @@ time with the sequence C\-o and jump back to the Midnight Commander, if
you interrupt an application, you will not be able to run other
external commands until you quit the application you interrupted.
.PP
A special subshell feature is that Midnight Commander displays a dynamic prompt
A special subshell feature (except Bash shell) is that Midnight Commander displays a dynamic prompt
like "user@host:current_path> " (with known problems for fish which displays the prompt in
full-screen mode (Ctrl-o), but not when the MC panels are visible).
.PP
An extra added feature for Bash shell of using the subshell is that the prompt
displayed by the Midnight Commander is the same prompt that you are
currently using in your shell.
.PP
The
.\"LINK2"
OPTIONS

View File

@ -838,8 +838,7 @@ init_subshell_precmd (char *precmd, size_t buff_size)
{
case BASH:
g_snprintf (precmd, buff_size,
" PROMPT_COMMAND='pwd>&%d; kill -STOP $$'; "
"PS1='\\u@\\h:\\w\\$ '\n", subshell_pipe[WRITE]);
" PROMPT_COMMAND='pwd>&%d; kill -STOP $$';\n", subshell_pipe[WRITE]);
break;
case ASH_BUSYBOX: