← Commit list

f0c0c56e9

Denys Vlasenko
Denys Vlasenko
2021-04-13
SUCCESS Duration: 152s

Subject

hush: beautify ^D handling to match ash / bash

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/hush.c+2 -0
@@ -2670,6 +2670,8 @@ static int get_user_input(struct in_str *i)
}
if (r < 0) {
/* EOF/error detected */
+ /* ^D on interactive input goes to next line before exiting: */
+ write(STDOUT_FILENO, "\n", 1);
i->p = NULL;
i->peek_buf[0] = r = EOF;
return r;