End of File from terminal to leave Mail.
SCCS-vsn: usr.bin/mail/lex.c 1.2
* Lexical processing of commands.
*/
* Lexical processing of commands.
*/
-static char *SccsId = "@(#)lex.c 1.1 %G%";
+static char *SccsId = "@(#)lex.c 1.2 %G%";
/*
* Interpret user commands one by one. If standard input is not a tty,
/*
* Interpret user commands one by one. If standard input is not a tty,
if (!rcvmode && !sourcing)
return;
if (!rcvmode && !sourcing)
return;
if (prompt && !sourcing)
printf("_\r");
flush();
if (prompt && !sourcing)
printf("_\r");
flush();
+ if (value("ignoreeof") != NOSTR && prompt) {
+ printf("Use \"quit\" to quit.\n");
+ goto top;
+ }
if (!edit) {
signal(SIGINT, SIG_IGN);
return;
if (!edit) {
signal(SIGINT, SIG_IGN);
return;