Ticket #3237: fish_pwd_fix.diff

File fish_pwd_fix.diff, 592 bytes (added by chown, 6 years ago)
  • src/subshell.c

    diff --git a/src/subshell.c b/src/subshell.c
    index 3f03ac9..a85b258 100644
    a b init_subshell (void) 
    893893        g_snprintf (precmd, sizeof (precmd), 
    894894                    "if not functions -q fish_prompt_mc;" 
    895895                    "functions -c fish_prompt fish_prompt_mc; end;" 
    896                     "function fish_prompt; pwd>&%d; fish_prompt_mc; kill -STOP %%self; end\n", 
     896                    "function fish_prompt; echo $PWD>&%d; fish_prompt_mc; kill -STOP %%self; end\n", 
    897897                    subshell_pipe[WRITE]); 
    898898        break; 
    899899