← Commit list

ba0f94458

Ron Yorston
Ron Yorston
2024-07-10
SUCCESS Duration: 156s

Subject

ash: fix parsing of alias expansion + bash features

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+6 -6
@@ -10934,11 +10934,6 @@ preadbuffer(void)
char *q;
int more;
- if (unlikely(g_parsefile->strpush)) {
- popstring();
- return __pgetc();
- }
-
if (g_parsefile->buf == NULL) {
pgetc_debug("preadbuffer PEOF1");
return PEOF;
@@ -11053,8 +11048,13 @@ static int __pgetc(void)
if (--g_parsefile->left_in_line >= 0)
c = (unsigned char)*g_parsefile->next_to_pgetc++;
- else
+ else {
+ if (unlikely(g_parsefile->strpush)) {
+ popstring();
+ return __pgetc();
+ }
c = preadbuffer();
+ }
g_parsefile->lastc[1] = g_parsefile->lastc[0];
g_parsefile->lastc[0] = c;