]> git.ipfire.org Git - thirdparty/coreutils.git/commit
fmt: accept new --goal=WIDTH (-g) option
authorBruce Korb <bkorb@gnu.org>
Fri, 6 Apr 2012 00:13:14 +0000 (17:13 -0700)
committerJim Meyering <meyering@redhat.com>
Thu, 12 Apr 2012 20:46:51 +0000 (22:46 +0200)
commit0092d5d88bb620885b88aa8b49b079b04066583f
treef16aeb4d08428b60f19e55ec2f3c398fd9554995
parent3d53e7fe1c31aa440cc9708c7c51db6b78c07653
fmt: accept new --goal=WIDTH (-g) option

Accept -g for BSD/Plan9 compatibility.
* NEWS (New features): Mention it.
* tests/fmt/goal-option: New test.
* tests/fmt/long-line: Rename from tests/fmt-long-line.
* tests/fmt/base: Rename from tests/misc/fmt.
* doc/coreutils.texi: Document it.
* src/fmt.c (main): Accept the new option
(check_for_goals): new function to implement the operands
Based on BSD's and Plan-9's fmt programs.
NEWS
doc/coreutils.texi
src/fmt.c
tests/Makefile.am
tests/fmt/base [moved from tests/misc/fmt with 100% similarity]
tests/fmt/goal-option [new file with mode: 0755]
tests/fmt/long-line [moved from tests/misc/fmt-long-line with 100% similarity]