mirror of
https://github.com/coreutils/coreutils.git
synced 2026-10-28 09:44:34 +08:00
With POSIX (and the LI18NUX2000 patch) backspaces back up by 1 column. This matches terminal output. Note less(1) and thus grotty(1) use per character backup accounting for their legacy bold/underline markup format, so we'll keep --characters to enable that mode if needed. This also avoids the issue of multiple backspaces using the width of a single previous character. * src/fold.c (adjust_column): Without -c, have backspace back up by 1 column. * doc/coreutils.texi (fold invocation): Mention that --characters does per character width backspace accounting. * tests/fold/fold-characters.sh: Add/Adjust test cases. * NEWS: Mention the change in behavior.