mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Merge branch '2027_bash_prompt'
* 2027_bash_prompt: Ticket #2027: don't overwrite the PROMPT_COMMAND bash variable.
This commit is contained in:
commit
f5295f790b
@ -874,7 +874,8 @@ init_subshell (void)
|
||||
{
|
||||
case BASH:
|
||||
g_snprintf (precmd, sizeof (precmd),
|
||||
" PROMPT_COMMAND='pwd>&%d;kill -STOP $$'\n", subshell_pipe[WRITE]);
|
||||
" PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'pwd>&%d;kill -STOP $$'\n",
|
||||
subshell_pipe[WRITE]);
|
||||
break;
|
||||
|
||||
case ZSH:
|
||||
|
Loading…
Reference in New Issue
Block a user