-
Support file names starting with a hyphen ('-').
-
Add forced folding to both folding strategies.
-
Support using a non-regular file, e.g., a pipe, as input file. This allows the use of
rfcfold
as any part of a pipeline by using/dev/stdin
as input filename and/dev/stdout
as output filename. Both/dev/stdin
and/dev/stdout
are provided by Bash if the operating system does not provide them itself. -
Use a POSIX compatible method to detect ASCII control or non-ASCII characters in an input file for folding.
-
Prefer GNU grep installed as
ggrep
over the grep included in the operating system, if available. On some systems, e.g. macOS, this may increase the maximum folding column value forrfcfold
, if combined with using GNU sed (e.g, asgsed
).
- Update NEWS.md file with current information.
-
More reliable reporting of folding errors.
-
Adjust
sed
usage to conform to POSIX specification. Before, only GNU Sed was known to work. Now thesed
implementation included in macOS is known to work, too. -
Add a NEWS.md file to list noteworthy changes in released versions.
- Removal of arbitrary upper limit for folding column. The practical upper
limit is determined by the available
grep
andsed
implementations.
- Improve portability by replacing problematic use of
echo
withprintf
. This makesrfcfold
compatible with the Z shell (zsh
).
-
Introduction of a version number following Semantic Versioning 2.0.0.
-
New options
-V
and--version
to print the program version.