From cd737f8956f8d8915063cd38923b4c0fcb5d5be8 Mon Sep 17 00:00:00 2001 From: Chris Owen Date: Wed, 13 Aug 2014 09:18:58 +0400 Subject: [PATCH] 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 --- src/subshell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subshell.c b/src/subshell.c index 3f03ac96f..a85b258d0 100644 --- a/src/subshell.c +++ b/src/subshell.c @@ -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;