Ticket #3852: mc.diff

File mc.diff, 904 bytes (added by anatoly.borodin, 2 years ago)
  • src/subshell/common.c

    init_subshell_precmd (char *precmd, size_t buff_size) 
    908908 * replaced by the backslash-escape sequence \0nnn, where "nnn" is the 
    909909 * numeric value of the character converted to octal number. 
    910910 *  
    911  *   cd "`printf "%b" 'ABC\0nnnDEF\0nnnXYZ'`" 
     911 *   cd "`printf %b 'ABC\0nnnDEF\0nnnXYZ'`" 
    912912 * 
    913913 */ 
    914914 
    subshell_name_quote (const char *s) 
    921921 
    922922    if (mc_global.shell->type == SHELL_FISH) 
    923923    { 
    924         quote_cmd_start = "(printf \"%b\" '"; 
     924        quote_cmd_start = "(printf %b '"; 
    925925        quote_cmd_end = "')"; 
    926926    } 
    927927    /* TODO: When BusyBox printf is fixed, get rid of this "else if", see 
    subshell_name_quote (const char *s) 
    933933       } */ 
    934934    else 
    935935    { 
    936         quote_cmd_start = "\"`printf \"%b\" '"; 
     936        quote_cmd_start = "\"`printf %b '"; 
    937937        quote_cmd_end = "'`\""; 
    938938    } 
    939939