Change #254547
| Category | gcoreutils |
| Changed by | Pádraig Brady <P@draigBrady.com> |
| Changed at | Thu 08 Jan 2026 13:08:14 |
| Repository | git://git.savannah.gnu.org/coreutils.git |
| Project | gcoreutils |
| Branch | master |
| Revision | 30d296dcb8d52dc89edbfcbe9896285b01227212 |
Comments
fmt: interpret -w as an inclusive maximum This aligns with `fold -w` and BSD `fmt` implementations. * src/fmt.c (fmt_paragraph): Check len <= max_width. * tests/fmt/width.sh: Add a new test. * tests/local.mk: Reference the new test. * NEWS: Mention the change in behavior. Addresses part of https://bugs.gnu.org/79497
Changed files
- NEWS
- src/fmt.c
- tests/fmt/width.sh
- tests/local.mk