← Commit list

51a471d05

Denys Vlasenko
Denys Vlasenko
2020-12-24
SUCCESS Duration: 150s

Subject

ash: change "clear ungetc counter on syntax errors" fix to match dash

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+1 -2
@@ -636,8 +636,6 @@ raise_exception(int e)
abort();
#endif
INT_OFF;
- /* Prevent this: ";l" -> syntax error, then "s" -> runs "ls" */
- g_parsefile->unget = 0;
exception_type = e;
longjmp(exception_handler->loc, 1);
}
@@ -14161,6 +14159,7 @@ reset(void)
/* from input.c: */
g_parsefile->left_in_buffer = 0;
g_parsefile->left_in_line = 0; /* clear input buffer */
+ g_parsefile->unget = 0;
popallfiles();
/* from var.c: */