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:
Chris Owen 2014-08-13 09:18:58 +04:00 committed by Andrew Borodin
parent 4513bd649c
commit cd737f8956

View File

@ -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;