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) |
383 | 383 | |
384 | 384 | /* Attach all our standard file descriptors to the pty */ |
385 | 385 | |
386 | | /* This is done just before the fork, because stderr must still */ |
| 386 | /* This is done just before the exec, because stderr must still */ |
387 | 387 | /* be connected to the real tty during the above error messages; */ |
388 | 388 | /* otherwise the user will never see them. */ |
389 | 389 | |
… |
… |
read_command_line_buffer (gboolean test_mode) |
620 | 620 | if (test_mode) |
621 | 621 | return TRUE; |
622 | 622 | |
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 |
624 | 624 | * could cause problems. */ |
625 | 625 | for (i = 0; i < command_buffer_char_length; i++) |
626 | 626 | if ((unsigned char) subshell_command_buffer[i] < 32 |
… |
… |
init_subshell_precmd (char *precmd, size_t buff_size) |
1074 | 1074 | * "PS1='$(precmd)\\u@\\h:\\w\\$ '\n", |
1075 | 1075 | * |
1076 | 1076 | * 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. |
1078 | 1078 | * Attention: BusyBox must be built with FEATURE_EDITING_FANCY_PROMPT to |
1079 | 1079 | * permit \u, \w, \h, \$ escape sequences. Unfortunately this cannot be guaranteed, |
1080 | 1080 | * especially on embedded systems where people try to save space, so let's use |