diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-04-17 16:13:32 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-04-17 16:13:32 +0200 |
commit | 10ad622dc2a9fb6563fab13719ead8baf15ff9e4 (patch) | |
tree | 82312d6f38a517dcc7c0004f78d76c667f5a674b /shell/hush.c | |
parent | d85352b4ff51694cb35b429e4cef53302c9e7076 (diff) | |
download | busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.gz busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.tar.bz2 busybox-w32-10ad622dc2a9fb6563fab13719ead8baf15ff9e4.zip |
Spelling fixes in comments, documentation, tests and examples
By klemens <ka7@github.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/hush.c b/shell/hush.c index 4123cc19e..e18920f50 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -1908,7 +1908,7 @@ static int check_and_run_traps(void) | |||
1908 | G.count_SIGCHLD++; | 1908 | G.count_SIGCHLD++; |
1909 | //bb_error_msg("[%d] check_and_run_traps: G.count_SIGCHLD:%d G.handled_SIGCHLD:%d", getpid(), G.count_SIGCHLD, G.handled_SIGCHLD); | 1909 | //bb_error_msg("[%d] check_and_run_traps: G.count_SIGCHLD:%d G.handled_SIGCHLD:%d", getpid(), G.count_SIGCHLD, G.handled_SIGCHLD); |
1910 | /* Note: | 1910 | /* Note: |
1911 | * We dont do 'last_sig = sig' here -> NOT returning this sig. | 1911 | * We don't do 'last_sig = sig' here -> NOT returning this sig. |
1912 | * This simplifies wait builtin a bit. | 1912 | * This simplifies wait builtin a bit. |
1913 | */ | 1913 | */ |
1914 | break; | 1914 | break; |
@@ -1917,7 +1917,7 @@ static int check_and_run_traps(void) | |||
1917 | debug_printf_exec("%s: sig:%d default handling is to ignore\n", __func__, sig); | 1917 | debug_printf_exec("%s: sig:%d default handling is to ignore\n", __func__, sig); |
1918 | /* SIGTERM, SIGQUIT, SIGTTIN, SIGTTOU, SIGTSTP */ | 1918 | /* SIGTERM, SIGQUIT, SIGTTIN, SIGTTOU, SIGTSTP */ |
1919 | /* Note: | 1919 | /* Note: |
1920 | * We dont do 'last_sig = sig' here -> NOT returning this sig. | 1920 | * We don't do 'last_sig = sig' here -> NOT returning this sig. |
1921 | * Example: wait is not interrupted by TERM | 1921 | * Example: wait is not interrupted by TERM |
1922 | * in interactive shell, because TERM is ignored. | 1922 | * in interactive shell, because TERM is ignored. |
1923 | */ | 1923 | */ |
@@ -2280,7 +2280,7 @@ static void reinit_unicode_for_hush(void) | |||
2280 | * AT\ | 2280 | * AT\ |
2281 | * H\ | 2281 | * H\ |
2282 | * \ | 2282 | * \ |
2283 | * It excercises a lot of corner cases. | 2283 | * It exercises a lot of corner cases. |
2284 | */ | 2284 | */ |
2285 | static void cmdedit_update_prompt(void) | 2285 | static void cmdedit_update_prompt(void) |
2286 | { | 2286 | { |
@@ -5235,7 +5235,7 @@ static void o_addblock_duplicate_backslash(o_string *o, const char *str, int len | |||
5235 | /* And now we want to add { or } and continue: | 5235 | /* And now we want to add { or } and continue: |
5236 | * o_addchr(o, c); | 5236 | * o_addchr(o, c); |
5237 | * continue; | 5237 | * continue; |
5238 | * luckily, just falling throught achieves this. | 5238 | * luckily, just falling through achieves this. |
5239 | */ | 5239 | */ |
5240 | } | 5240 | } |
5241 | #endif | 5241 | #endif |
@@ -5830,7 +5830,7 @@ static NOINLINE int expand_vars_to_list(o_string *output, int n, char *arg) | |||
5830 | arg++; | 5830 | arg++; |
5831 | /* Can't just stuff it into output o_string, | 5831 | /* Can't just stuff it into output o_string, |
5832 | * expanded result may need to be globbed | 5832 | * expanded result may need to be globbed |
5833 | * and $IFS-splitted */ | 5833 | * and $IFS-split */ |
5834 | debug_printf_subst("SUBST '%s' first_ch %x\n", arg, first_ch); | 5834 | debug_printf_subst("SUBST '%s' first_ch %x\n", arg, first_ch); |
5835 | G.last_exitcode = process_command_subs(&subst_result, arg); | 5835 | G.last_exitcode = process_command_subs(&subst_result, arg); |
5836 | debug_printf_subst("SUBST RES:%d '%s'\n", G.last_exitcode, subst_result.data); | 5836 | debug_printf_subst("SUBST RES:%d '%s'\n", G.last_exitcode, subst_result.data); |
@@ -7320,7 +7320,7 @@ static int process_wait_result(struct pipe *fg_pipe, pid_t childpid, int status) | |||
7320 | /* There are still running processes in the fg_pipe */ | 7320 | /* There are still running processes in the fg_pipe */ |
7321 | return -1; | 7321 | return -1; |
7322 | } | 7322 | } |
7323 | /* It wasnt in fg_pipe, look for process in bg pipes */ | 7323 | /* It wasn't in fg_pipe, look for process in bg pipes */ |
7324 | } | 7324 | } |
7325 | 7325 | ||
7326 | #if ENABLE_HUSH_JOB | 7326 | #if ENABLE_HUSH_JOB |