mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Ticket #3237: fish subshell pwd passing is broken.
Use $PWD variable instead of of calling pwd (which can be a function) since it is read-only and not manipulated. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
4513bd649c
commit
cd737f8956
@ -893,7 +893,7 @@ init_subshell (void)
|
||||
g_snprintf (precmd, sizeof (precmd),
|
||||
"if not functions -q fish_prompt_mc;"
|
||||
"functions -c fish_prompt fish_prompt_mc; end;"
|
||||
"function fish_prompt; pwd>&%d; fish_prompt_mc; kill -STOP %%self; end\n",
|
||||
"function fish_prompt; echo $PWD>&%d; fish_prompt_mc; kill -STOP %%self; end\n",
|
||||
subshell_pipe[WRITE]);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user