diff options
author | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-05-16 09:33:03 +0100 |
commit | 35d2f5bccb0f3dde600702ebcdb5424d4d50be4a (patch) | |
tree | 6e0ff0341c69839e268459a199682628bae734ed /shell/ash.c | |
parent | 248a2600a2f4b442101ad568d1994b908bb28d4b (diff) | |
parent | f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (diff) | |
download | busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.gz busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.bz2 busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c index 52feff422..5870a23f3 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -2942,7 +2942,7 @@ pwdcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
2942 | #else | 2942 | #else |
2943 | # define SIT_ITEM(a,b,c,d) (a | (b << 4) | (c << 8)) | 2943 | # define SIT_ITEM(a,b,c,d) (a | (b << 4) | (c << 8)) |
2944 | #endif | 2944 | #endif |
2945 | static const uint16_t S_I_T[] = { | 2945 | static const uint16_t S_I_T[] ALIGN2 = { |
2946 | #if ENABLE_ASH_ALIAS | 2946 | #if ENABLE_ASH_ALIAS |
2947 | SIT_ITEM(CSPCL , CIGN , CIGN , CIGN ), /* 0, PEOA */ | 2947 | SIT_ITEM(CSPCL , CIGN , CIGN , CIGN ), /* 0, PEOA */ |
2948 | #endif | 2948 | #endif |
@@ -3044,7 +3044,7 @@ SIT(int c, int syntax) | |||
3044 | 3044 | ||
3045 | #else /* !USE_SIT_FUNCTION */ | 3045 | #else /* !USE_SIT_FUNCTION */ |
3046 | 3046 | ||
3047 | static const uint8_t syntax_index_table[] = { | 3047 | static const uint8_t syntax_index_table[] ALIGN1 = { |
3048 | /* BASESYNTAX_DQSYNTAX_SQSYNTAX_ARISYNTAX */ | 3048 | /* BASESYNTAX_DQSYNTAX_SQSYNTAX_ARISYNTAX */ |
3049 | /* 0 */ CWORD_CWORD_CWORD_CWORD, | 3049 | /* 0 */ CWORD_CWORD_CWORD_CWORD, |
3050 | /* 1 */ CWORD_CWORD_CWORD_CWORD, | 3050 | /* 1 */ CWORD_CWORD_CWORD_CWORD, |
@@ -8320,7 +8320,7 @@ static char **nodeptr; | |||
8320 | #define EV_TESTED 02 /* exit status is checked; ignore -e flag */ | 8320 | #define EV_TESTED 02 /* exit status is checked; ignore -e flag */ |
8321 | #define EV_BACKCMD 04 /* command executing within back quotes */ | 8321 | #define EV_BACKCMD 04 /* command executing within back quotes */ |
8322 | 8322 | ||
8323 | static const uint8_t nodesize[N_NUMBER] = { | 8323 | static const uint8_t nodesize[N_NUMBER] ALIGN1 = { |
8324 | [NCMD ] = SHELL_ALIGN(sizeof(struct ncmd)), | 8324 | [NCMD ] = SHELL_ALIGN(sizeof(struct ncmd)), |
8325 | [NPIPE ] = SHELL_ALIGN(sizeof(struct npipe)), | 8325 | [NPIPE ] = SHELL_ALIGN(sizeof(struct npipe)), |
8326 | [NREDIR ] = SHELL_ALIGN(sizeof(struct nredir)), | 8326 | [NREDIR ] = SHELL_ALIGN(sizeof(struct nredir)), |
@@ -11935,7 +11935,7 @@ parsesub: { | |||
11935 | || (c != '(' && c != '{' && !is_name(c) && !is_special(c)) | 11935 | || (c != '(' && c != '{' && !is_name(c) && !is_special(c)) |
11936 | ) { | 11936 | ) { |
11937 | #if ENABLE_ASH_BASH_COMPAT | 11937 | #if ENABLE_ASH_BASH_COMPAT |
11938 | if (c == '\'') | 11938 | if (syntax != DQSYNTAX && c == '\'') |
11939 | bash_dollar_squote = 1; | 11939 | bash_dollar_squote = 1; |
11940 | else | 11940 | else |
11941 | #endif | 11941 | #endif |
@@ -13072,7 +13072,8 @@ helpcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
13072 | out1fmt("\n"); | 13072 | out1fmt("\n"); |
13073 | col = 0; | 13073 | col = 0; |
13074 | } | 13074 | } |
13075 | a += strlen(a) + 1; | 13075 | while (*a++ != '\0') |
13076 | continue; | ||
13076 | } | 13077 | } |
13077 | } | 13078 | } |
13078 | # endif | 13079 | # endif |