diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-21 10:21:44 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-21 10:21:44 +0200 |
commit | 69b1cef921ac66e8f792ff52ddb3a5609600a17f (patch) | |
tree | 5cd1c9e737c260c52784f8269168e9928490e16b | |
parent | bc3e9479c2e3ebc7e557d530e898f60f95612d54 (diff) | |
download | busybox-w32-69b1cef921ac66e8f792ff52ddb3a5609600a17f.tar.gz busybox-w32-69b1cef921ac66e8f792ff52ddb3a5609600a17f.tar.bz2 busybox-w32-69b1cef921ac66e8f792ff52ddb3a5609600a17f.zip |
hush: better wording in comments. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/hush.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/hush.c b/shell/hush.c index 63b95633d..6b176c388 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -1038,7 +1038,7 @@ static void restore_G_args(save_arg_t *sv, char **argv) | |||
1038 | * is finished or backgrounded. It is the same in interactive and | 1038 | * is finished or backgrounded. It is the same in interactive and |
1039 | * non-interactive shells, and is the same regardless of whether | 1039 | * non-interactive shells, and is the same regardless of whether |
1040 | * a user trap handler is installed or a shell special one is in effect. | 1040 | * a user trap handler is installed or a shell special one is in effect. |
1041 | * ^C or ^Z from keyboard seem to execute "at once" because it usually | 1041 | * ^C or ^Z from keyboard seems to execute "at once" because it usually |
1042 | * backgrounds (i.e. stops) or kills all members of currently running | 1042 | * backgrounds (i.e. stops) or kills all members of currently running |
1043 | * pipe. | 1043 | * pipe. |
1044 | * | 1044 | * |
@@ -1105,7 +1105,7 @@ static void restore_G_args(save_arg_t *sv, char **argv) | |||
1105 | * (child shell is not interactive), | 1105 | * (child shell is not interactive), |
1106 | * unset all traps (note: regardless of child shell's type - {}, (), etc) | 1106 | * unset all traps (note: regardless of child shell's type - {}, (), etc) |
1107 | * after [v]fork, if we plan to exec: | 1107 | * after [v]fork, if we plan to exec: |
1108 | * POSIX says pending signal mask is cleared in child - no need to clear it. | 1108 | * POSIX says fork clears pending signal mask in child - no need to clear it. |
1109 | * Restore blocked signal set to one inherited by shell just prior to exec. | 1109 | * Restore blocked signal set to one inherited by shell just prior to exec. |
1110 | * | 1110 | * |
1111 | * Note: as a result, we do not use signal handlers much. The only uses | 1111 | * Note: as a result, we do not use signal handlers much. The only uses |
@@ -5673,8 +5673,10 @@ static int handle_dollar(o_string *as_string, | |||
5673 | goto make_var; | 5673 | goto make_var; |
5674 | } | 5674 | } |
5675 | /* else: it's $_ */ | 5675 | /* else: it's $_ */ |
5676 | /* TODO: */ | 5676 | /* TODO: $_ and $-: */ |
5677 | /* $_ Shell or shell script name; or last cmd name */ | 5677 | /* $_ Shell or shell script name; or last argument of last command |
5678 | * (if last command wasn't a pipe; if it was, bash sets $_ to ""); | ||
5679 | * but in command's env, set to full pathname used to invoke it */ | ||
5678 | /* $- Option flags set by set builtin or shell options (-i etc) */ | 5680 | /* $- Option flags set by set builtin or shell options (-i etc) */ |
5679 | default: | 5681 | default: |
5680 | o_addQchr(dest, '$'); | 5682 | o_addQchr(dest, '$'); |