ctrl-d appends characters to output

Poul-Henning Kamp phk at phk.freebsd.dk
Sat Jan 17 19:28:26 UTC 2015


--------
In message <CAGcjGpP0t3+cJLRHS5Ggfjao9Vcy0xosAg2KqBWgVA_NtKoNgA at mail.gmail.com>
, less xss writes:

>    printf("%.0f\n", nc);

Change to:

>    printf("\n%.0f\n", nc);


Also, try:

	./a.out | hexdump -C


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-hackers mailing list