svn commit: r363788 - stable/12/bin/sh

Piotr Pawel Stefaniak pstef at FreeBSD.org
Mon Aug 3 06:54:05 UTC 2020


Author: pstef
Date: Mon Aug  3 06:54:04 2020
New Revision: 363788
URL: https://svnweb.freebsd.org/changeset/base/363788

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

Modified:
  stable/12/bin/sh/main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/bin/sh/main.c
==============================================================================
--- stable/12/bin/sh/main.c	Mon Aug  3 06:10:13 2020	(r363787)
+++ stable/12/bin/sh/main.c	Mon Aug  3 06:54:04 2020	(r363788)
@@ -241,6 +241,10 @@ cmdloop(int top)
 		}
 	}
 	popstackmark(&smark);
+	if (top && iflag) {
+		out2c('\n');
+		flushout(out2);
+	}
 }
 
 


More information about the svn-src-stable-12 mailing list