sh(1): print a newline when ^D quits sh

I've always found this a little bit confusing:
> sh
$ ^D> sh
$ ^D>

Reviewed by:	0mp, jilles
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D25813
This commit is contained in:
Piotr Pawel Stefaniak 2020-07-27 18:46:20 +00:00
parent bdfea496cf
commit 9b2a97806f

View File

@ -228,6 +228,10 @@ cmdloop(int top)
}
}
popstackmark(&smark);
if (top && iflag) {
out2c('\n');
flushout(out2);
}
}