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>
This commit is contained in:
parent
96f064d416
commit
d383b49aef
12
shell/hush.c
12
shell/hush.c
@ -475,20 +475,10 @@ struct command {
|
||||
smallint cmd_type; /* CMD_xxx */
|
||||
#define CMD_NORMAL 0
|
||||
#define CMD_SUBSHELL 1
|
||||
|
||||
/* used for "[[ EXPR ]]" */
|
||||
#if ENABLE_HUSH_BASH_COMPAT
|
||||
/* used for "[[ EXPR ]]" */
|
||||
# define CMD_SINGLEWORD_NOGLOB 2
|
||||
#endif
|
||||
|
||||
/* used for "export noglob=* glob* a=`echo a b`" */
|
||||
//#define CMD_SINGLEWORD_NOGLOB_COND 3
|
||||
// It is hard to implement correctly, it adds significant amounts of tricky code,
|
||||
// and all this is only useful for really obscure export statements
|
||||
// almost nobody would use anyway. #ifdef CMD_SINGLEWORD_NOGLOB_COND
|
||||
// guards the code which implements it, but I have doubts it works
|
||||
// in all cases (especially with mixed globbed/non-globbed arguments)
|
||||
|
||||
#if ENABLE_HUSH_FUNCTIONS
|
||||
# define CMD_FUNCDEF 3
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user