← Commit list

5726df5f9

Ron Yorston
Ron Yorston
2021-09-14
SUCCESS Duration: 152s

Subject

ash: let ignoreeof only affect interactive shells

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+4 -3
@@ -13508,12 +13508,13 @@ cmdloop(int top)
if (!top || numeof >= 50)
break;
if (!stoppedjobs()) {
+ if (!iflag)
+ break;
if (!Iflag) {
- if (iflag) {
- newline_and_flush(stderr);
- }
+ newline_and_flush(stderr);
break;
}
+ /* "set -o ignoreeof" active, do not exit command loop on ^D */
out2str("\nUse \"exit\" to leave shell.\n");
}
numeof++;