Ticket #4120: tcsh_fix.patch

File tcsh_fix.patch, 620 bytes (added by congest, 16 months ago)
  • src/subshell/common.c

    diff --git a/src/subshell/common.c b/src/subshell/common.c
    index 790770461..df3aedc03 100644
    a b init_subshell_precmd (char *precmd, size_t buff_size) 
    11331133        g_snprintf (precmd, buff_size, 
    11341134                    "set echo_style=both; " 
    11351135                    "set prompt='%%n@%%m:%%~%%# '; " 
    1136                     "alias precmd 'echo $cwd:q >>%s; kill -STOP $$'\n", tcsh_fifo); 
     1136                    "alias precmd 'echo -n;echo $cwd:q >>%s; kill -STOP $$'\n", tcsh_fifo); 
    11371137        break; 
    11381138    case SHELL_FISH: 
    11391139        g_snprintf (precmd, buff_size,