← Commit list

383b885ff

Ron Yorston
Ron Yorston
2015-10-29
SUCCESS Duration: 271s

Subject

ash: save a few bytes in code to parse case statements

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+2 -4
@@ -10959,10 +10959,8 @@ parse_command(void)
/*n2->narg.next = NULL; - stzalloc did it */
n2->narg.text = wordtext;
n2->narg.backquote = backquotelist;
- do {
- checkkwd = CHKKWD | CHKALIAS;
- } while (readtoken() == TNL);
- if (lasttoken != TIN)
+ checkkwd = CHKNL | CHKKWD | CHKALIAS;
+ if (readtoken() != TIN)
raise_error_unexpected_syntax(TIN);
cpp = &n1->ncase.cases;
next_case: