Ticket #4126: 0001-fix-some-comments.patch

File 0001-fix-some-comments.patch, 1.9 KB (added by ossi, 4 years ago)
  • src/subshell/common.c

    From a3bc5d809e882181fe1071c38074a55c7202a138 Mon Sep 17 00:00:00 2001
    From: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
    Date: Mon, 20 Apr 2020 14:24:33 +0200
    Subject: [PATCH 1/7] fix some comments
    
    ---
     src/subshell/common.c | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/subshell/common.c b/src/subshell/common.c
    index df3aedc03..33c16fdb3 100644
    a b init_subshell_child (const char *pty_name) 
    383383 
    384384    /* Attach all our standard file descriptors to the pty */ 
    385385 
    386     /* This is done just before the fork, because stderr must still      */ 
     386    /* This is done just before the exec, because stderr must still      */ 
    387387    /* be connected to the real tty during the above error messages; */ 
    388388    /* otherwise the user will never see them.                   */ 
    389389 
    read_command_line_buffer (gboolean test_mode) 
    620620    if (test_mode) 
    621621        return TRUE; 
    622622 
    623     /* Erase non-text characters in the command buffer, such as tab, or newline, as this 
     623    /* Substitute non-text characters in the command buffer, such as tab, or newline, as this 
    624624     * could cause problems. */ 
    625625    for (i = 0; i < command_buffer_char_length; i++) 
    626626        if ((unsigned char) subshell_command_buffer[i] < 32 
    init_subshell_precmd (char *precmd, size_t buff_size) 
    10741074         *    "PS1='$(precmd)\\u@\\h:\\w\\$ '\n", 
    10751075         * 
    10761076         * C: This works if user calls "ash" command because in sub-subshell 
    1077          *    PRECMD is unfedined, thus evaluated to empty string - no damage done. 
     1077         *    PRECMD is undefined, thus evaluated to empty string - no damage done. 
    10781078         *    Attention: BusyBox must be built with FEATURE_EDITING_FANCY_PROMPT to 
    10791079         *    permit \u, \w, \h, \$ escape sequences. Unfortunately this cannot be guaranteed, 
    10801080         *    especially on embedded systems where people try to save space, so let's use