aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-07-10 11:54:23 +0100
committerRon Yorston <rmy@pobox.com>2024-07-10 11:54:23 +0100
commit2dc17b7c80c803119dd2214bce4406b252ae2e9f (patch)
tree3eb11a8170e4164e2781a9be9925fc4bfa6f5053 /shell/ash.c
parent29a24869e403e7364301e6fd7c745d327ed2d8c6 (diff)
parent0af28b84e58307422f807ddbdafc67a68f71eb64 (diff)
downloadbusybox-w32-2dc17b7c80c803119dd2214bce4406b252ae2e9f.tar.gz
busybox-w32-2dc17b7c80c803119dd2214bce4406b252ae2e9f.tar.bz2
busybox-w32-2dc17b7c80c803119dd2214bce4406b252ae2e9f.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c33
1 files changed, 12 insertions, 21 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 64a8dd318..719f722a2 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1061,13 +1061,13 @@ out2str(const char *p)
1061#define CTLVAR ((unsigned char)'\202') /* variable defn */ 1061#define CTLVAR ((unsigned char)'\202') /* variable defn */
1062#define CTLENDVAR ((unsigned char)'\203') 1062#define CTLENDVAR ((unsigned char)'\203')
1063#define CTLBACKQ ((unsigned char)'\204') 1063#define CTLBACKQ ((unsigned char)'\204')
1064#define CTLARI ((unsigned char)'\206') /* arithmetic expression */ 1064#define CTLARI ((unsigned char)'\205') /* arithmetic expression */
1065#define CTLENDARI ((unsigned char)'\207') 1065#define CTLENDARI ((unsigned char)'\206')
1066#define CTLQUOTEMARK ((unsigned char)'\210') 1066#define CTLQUOTEMARK ((unsigned char)'\207')
1067#define CTL_LAST CTLQUOTEMARK 1067#define CTL_LAST CTLQUOTEMARK
1068#if BASH_PROCESS_SUBST 1068#if BASH_PROCESS_SUBST
1069# define CTLTOPROC ((unsigned char)'\211') 1069# define CTLTOPROC ((unsigned char)'\210')
1070# define CTLFROMPROC ((unsigned char)'\212') 1070# define CTLFROMPROC ((unsigned char)'\211')
1071# undef CTL_LAST 1071# undef CTL_LAST
1072# define CTL_LAST CTLFROMPROC 1072# define CTL_LAST CTLFROMPROC
1073#endif 1073#endif
@@ -3827,17 +3827,17 @@ static const uint8_t syntax_index_table[] ALIGN1 = {
3827 /* 130 CTLVAR */ CCTL_CCTL_CCTL_CCTL, 3827 /* 130 CTLVAR */ CCTL_CCTL_CCTL_CCTL,
3828 /* 131 CTLENDVAR */ CCTL_CCTL_CCTL_CCTL, 3828 /* 131 CTLENDVAR */ CCTL_CCTL_CCTL_CCTL,
3829 /* 132 CTLBACKQ */ CCTL_CCTL_CCTL_CCTL, 3829 /* 132 CTLBACKQ */ CCTL_CCTL_CCTL_CCTL,
3830 /* 133 CTLQUOTE */ CCTL_CCTL_CCTL_CCTL, 3830 /* 133 CTLARI */ CCTL_CCTL_CCTL_CCTL,
3831 /* 134 CTLARI */ CCTL_CCTL_CCTL_CCTL, 3831 /* 134 CTLENDARI */ CCTL_CCTL_CCTL_CCTL,
3832 /* 135 CTLENDARI */ CCTL_CCTL_CCTL_CCTL, 3832 /* 135 CTLQUOTEMARK */ CCTL_CCTL_CCTL_CCTL,
3833 /* 136 CTLQUOTEMARK */ CCTL_CCTL_CCTL_CCTL,
3834#if BASH_PROCESS_SUBST 3833#if BASH_PROCESS_SUBST
3835 /* 137 CTLTOPROC */ CCTL_CCTL_CCTL_CCTL, 3834 /* 136 CTLTOPROC */ CCTL_CCTL_CCTL_CCTL,
3836 /* 138 CTLFROMPROC */ CCTL_CCTL_CCTL_CCTL, 3835 /* 137 CTLFROMPROC */ CCTL_CCTL_CCTL_CCTL,
3837#else 3836#else
3837 /* 136 */ CWORD_CWORD_CWORD_CWORD,
3838 /* 137 */ CWORD_CWORD_CWORD_CWORD, 3838 /* 137 */ CWORD_CWORD_CWORD_CWORD,
3839 /* 138 */ CWORD_CWORD_CWORD_CWORD,
3840#endif 3839#endif
3840 /* 138 */ CWORD_CWORD_CWORD_CWORD,
3841 /* 139 */ CWORD_CWORD_CWORD_CWORD, 3841 /* 139 */ CWORD_CWORD_CWORD_CWORD,
3842 /* 140 */ CWORD_CWORD_CWORD_CWORD, 3842 /* 140 */ CWORD_CWORD_CWORD_CWORD,
3843 /* 141 */ CWORD_CWORD_CWORD_CWORD, 3843 /* 141 */ CWORD_CWORD_CWORD_CWORD,
@@ -12181,13 +12181,6 @@ preadbuffer(void)
12181 char *q; 12181 char *q;
12182 int more; 12182 int more;
12183 12183
12184#if !ENABLE_PLATFORM_MINGW32
12185 if (unlikely(g_parsefile->strpush)) {
12186 popstring();
12187 return __pgetc();
12188 }
12189#endif
12190
12191 if (g_parsefile->buf == NULL) { 12184 if (g_parsefile->buf == NULL) {
12192 pgetc_debug("preadbuffer PEOF1"); 12185 pgetc_debug("preadbuffer PEOF1");
12193 return PEOF; 12186 return PEOF;
@@ -12303,12 +12296,10 @@ static int __pgetc(void)
12303 if (--g_parsefile->left_in_line >= 0) 12296 if (--g_parsefile->left_in_line >= 0)
12304 c = (unsigned char)*g_parsefile->next_to_pgetc++; 12297 c = (unsigned char)*g_parsefile->next_to_pgetc++;
12305 else { 12298 else {
12306#if ENABLE_PLATFORM_MINGW32
12307 if (unlikely(g_parsefile->strpush)) { 12299 if (unlikely(g_parsefile->strpush)) {
12308 popstring(); 12300 popstring();
12309 return __pgetc(); 12301 return __pgetc();
12310 } 12302 }
12311#endif
12312 c = preadbuffer(); 12303 c = preadbuffer();
12313 } 12304 }
12314 12305