diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-01-04 19:56:11 +0700 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-01-04 19:56:11 +0700 |
commit | 9db69882bee2d528d706d61d34ef7741122330be (patch) | |
tree | f46c4ed5cae58956cd165e552ea4e366fd9b1a6c /shell | |
parent | 3f357a9c754805c4c38793749927aeda82797735 (diff) | |
parent | e4dcba1c103dc28e927e004791e331aaf604383d (diff) | |
download | busybox-w32-9db69882bee2d528d706d61d34ef7741122330be.tar.gz busybox-w32-9db69882bee2d528d706d61d34ef7741122330be.tar.bz2 busybox-w32-9db69882bee2d528d706d61d34ef7741122330be.zip |
Merge commit 'e4dcba1c103dc28e927e004791e331aaf604383d'
Conflicts:
libbb/make_directory.c
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 | ||||
-rw-r--r-- | shell/hush.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index 45ec13097..ccf4288a9 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -7978,7 +7978,7 @@ hashcd(void) | |||
7978 | for (cmdp = *pp; cmdp; cmdp = cmdp->next) { | 7978 | for (cmdp = *pp; cmdp; cmdp = cmdp->next) { |
7979 | if (cmdp->cmdtype == CMDNORMAL | 7979 | if (cmdp->cmdtype == CMDNORMAL |
7980 | || (cmdp->cmdtype == CMDBUILTIN | 7980 | || (cmdp->cmdtype == CMDBUILTIN |
7981 | && !IS_BUILTIN_REGULAR(cmdp->param.cmd) | 7981 | && !IS_BUILTIN_REGULAR(cmdp->param.cmd) |
7982 | && builtinloc > 0) | 7982 | && builtinloc > 0) |
7983 | ) { | 7983 | ) { |
7984 | cmdp->rehash = 1; | 7984 | cmdp->rehash = 1; |
@@ -12825,7 +12825,7 @@ find_command(char *name, struct cmdentry *entry, int act, const char *path) | |||
12825 | } | 12825 | } |
12826 | if ((act & DO_NOFUNC) | 12826 | if ((act & DO_NOFUNC) |
12827 | || !prefix(pathopt, "func") | 12827 | || !prefix(pathopt, "func") |
12828 | ) { /* ignore unimplemented options */ | 12828 | ) { /* ignore unimplemented options */ |
12829 | continue; | 12829 | continue; |
12830 | } | 12830 | } |
12831 | } | 12831 | } |
diff --git a/shell/hush.c b/shell/hush.c index 75083dc2e..9dd30c436 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -2765,7 +2765,7 @@ static const struct reserved_combo* match_reserved_word(o_string *word) | |||
2765 | }; | 2765 | }; |
2766 | const struct reserved_combo *r; | 2766 | const struct reserved_combo *r; |
2767 | 2767 | ||
2768 | for (r = reserved_list; r < reserved_list + ARRAY_SIZE(reserved_list); r++) { | 2768 | for (r = reserved_list; r < reserved_list + ARRAY_SIZE(reserved_list); r++) { |
2769 | if (strcmp(word->data, r->literal) == 0) | 2769 | if (strcmp(word->data, r->literal) == 0) |
2770 | return r; | 2770 | return r; |
2771 | } | 2771 | } |
@@ -4660,7 +4660,7 @@ static NOINLINE const char *expand_one_var(char **to_be_freed_pp, char *arg, cha | |||
4660 | char *exp_exp_word; | 4660 | char *exp_exp_word; |
4661 | char *loc; | 4661 | char *loc; |
4662 | unsigned scan_flags = pick_scan(exp_op, *exp_word); | 4662 | unsigned scan_flags = pick_scan(exp_op, *exp_word); |
4663 | if (exp_op == *exp_word) /* ## or %% */ | 4663 | if (exp_op == *exp_word) /* ## or %% */ |
4664 | exp_word++; | 4664 | exp_word++; |
4665 | exp_exp_word = encode_then_expand_string(exp_word, /*process_bkslash:*/ 1, /*unbackslash:*/ 1); | 4665 | exp_exp_word = encode_then_expand_string(exp_word, /*process_bkslash:*/ 1, /*unbackslash:*/ 1); |
4666 | if (exp_exp_word) | 4666 | if (exp_exp_word) |