So the output of the program that outputs a newline looks like:
$ program output $
$ program output% $
So the output of the program that outputs a newline looks like:
And output of the program without trailing newline: There is an issue if the program is expected to output "%" at the end, of course.