diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-06 10:22:13 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-09-06 10:22:13 +0200 |
commit | d383b49aefecea99e5bfb2f9eb2956f1c6c013e1 (patch) | |
tree | 8af8a2837c49cccf9f4cd3dca4cdcd14be4e25db /shell | |
parent | 96f064d4161ed66d8db95bf8047eece90959f1e1 (diff) | |
download | busybox-w32-d383b49aefecea99e5bfb2f9eb2956f1c6c013e1.tar.gz busybox-w32-d383b49aefecea99e5bfb2f9eb2956f1c6c013e1.tar.bz2 busybox-w32-d383b49aefecea99e5bfb2f9eb2956f1c6c013e1.zip |
hush: remove disabled CMD_SINGLEWORD_NOGLOB_COND, rename o_glob->perform_glob
+ other small tweaks to comments and such
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 12 |
2 files changed, 2 insertions, 12 deletions
diff --git a/shell/ash.c b/shell/ash.c index 28a8bb60c..273ecabdb 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -74,7 +74,7 @@ | |||
74 | //applet:IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, _BB_DIR_BIN, _BB_SUID_DROP, sh)) | 74 | //applet:IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, _BB_DIR_BIN, _BB_SUID_DROP, sh)) |
75 | //applet:IF_FEATURE_BASH_IS_ASH(APPLET_ODDNAME(bash, ash, _BB_DIR_BIN, _BB_SUID_DROP, bash)) | 75 | //applet:IF_FEATURE_BASH_IS_ASH(APPLET_ODDNAME(bash, ash, _BB_DIR_BIN, _BB_SUID_DROP, bash)) |
76 | 76 | ||
77 | //kbuild:lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o shell_common.o | 77 | //kbuild:lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o shell_common.o |
78 | //kbuild:lib-$(CONFIG_ASH_RANDOM_SUPPORT) += random.o | 78 | //kbuild:lib-$(CONFIG_ASH_RANDOM_SUPPORT) += random.o |
79 | 79 | ||
80 | //config:config ASH | 80 | //config:config ASH |
diff --git a/shell/hush.c b/shell/hush.c index 81811cbb0..2a4e80b6e 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -475,20 +475,10 @@ struct command { | |||
475 | smallint cmd_type; /* CMD_xxx */ | 475 | smallint cmd_type; /* CMD_xxx */ |
476 | #define CMD_NORMAL 0 | 476 | #define CMD_NORMAL 0 |
477 | #define CMD_SUBSHELL 1 | 477 | #define CMD_SUBSHELL 1 |
478 | |||
479 | /* used for "[[ EXPR ]]" */ | ||
480 | #if ENABLE_HUSH_BASH_COMPAT | 478 | #if ENABLE_HUSH_BASH_COMPAT |
479 | /* used for "[[ EXPR ]]" */ | ||
481 | # define CMD_SINGLEWORD_NOGLOB 2 | 480 | # define CMD_SINGLEWORD_NOGLOB 2 |
482 | #endif | 481 | #endif |
483 | |||
484 | /* used for "export noglob=* glob* a=`echo a b`" */ | ||
485 | //#define CMD_SINGLEWORD_NOGLOB_COND 3 | ||
486 | // It is hard to implement correctly, it adds significant amounts of tricky code, | ||
487 | // and all this is only useful for really obscure export statements | ||
488 | // almost nobody would use anyway. #ifdef CMD_SINGLEWORD_NOGLOB_COND | ||
489 | // guards the code which implements it, but I have doubts it works | ||
490 | // in all cases (especially with mixed globbed/non-globbed arguments) | ||
491 | |||
492 | #if ENABLE_HUSH_FUNCTIONS | 482 | #if ENABLE_HUSH_FUNCTIONS |
493 | # define CMD_FUNCDEF 3 | 483 | # define CMD_FUNCDEF 3 |
494 | #endif | 484 | #endif |