Index: head/bin/cat/cat.c =================================================================== --- head/bin/cat/cat.c +++ head/bin/cat/cat.c @@ -226,10 +226,16 @@ } else gobble = 0; } - if (nflag && (!bflag || ch != '\n')) { - (void)fprintf(stdout, "%6d\t", ++line); - if (ferror(stdout)) - break; + if (nflag) { + if (!bflag || ch != '\n') { + (void)fprintf(stdout, "%6d\t", ++line); + if (ferror(stdout)) + break; + } else if (eflag) { + (void)fprintf(stdout, "%6s\t", ""); + if (ferror(stdout)) + break; + } } } if (ch == '\n') { Index: head/bin/cat/tests/Makefile =================================================================== --- head/bin/cat/tests/Makefile +++ head/bin/cat/tests/Makefile @@ -17,10 +17,4 @@ .include -d_align.out: ${TESTSRC}/d_align.out - sed -E -e 's,^[[:space:]]{7}\$$$$,\$$,' < ${.ALLSRC} > ${.TARGET}.tmp - mv ${.TARGET}.tmp ${.TARGET} - -CLEANFILES+= d_align.out d_align.out.tmp - .include