]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - usr.bin/col/tests/col_test.sh
col(1): Fix a couple of bugs
authormarkj <markj@FreeBSD.org>
Fri, 9 Oct 2020 15:27:37 +0000 (15:27 +0000)
committermarkj <markj@FreeBSD.org>
Fri, 9 Oct 2020 15:27:37 +0000 (15:27 +0000)
commit9dd06b18fcc7dd61d9af8792b03b471c212e561f
treeffa961b0b73c62dfcc1cd463138acd42ab61c89d
parentbe5f1eac4cece41313d56b7bbb27973430647e36
col(1): Fix a couple of bugs

- When flushing extra lines after all input has been processed, make
  sure that local state is reinitialized correctly.
- When -f is specified, make sure to end output with a full newline.
- Fix some style issues and update comments.
- Add some regression tests.

PR: 249308
Submitted by: Yang Zhong <yzhong@freebsdfoundation.org>
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D26536
usr.bin/col/col.c
usr.bin/col/tests/Makefile
usr.bin/col/tests/col_test.sh
usr.bin/col/tests/hlf.in [new file with mode: 0644]
usr.bin/col/tests/hlf2.in [new file with mode: 0644]
usr.bin/col/tests/nl.in [new file with mode: 0644]
usr.bin/col/tests/nl2.in [new file with mode: 0644]
usr.bin/col/tests/nl3.in [new file with mode: 0644]
usr.bin/col/tests/rlf3.in [new file with mode: 0644]