]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: fold: clarify operation of -s in --help
authorPádraig Brady <P@draigBrady.com>
Tue, 25 Nov 2025 22:48:37 +0000 (22:48 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 26 Nov 2025 09:32:27 +0000 (09:32 +0000)
* src/fold.c (usage): The description of -s was unclear:
- State that we can also break within words.
- State that we split on blanks not spaces.
- State that we split after the blank, not before.

src/fold.c

index 6dbf013e297e9e510ef8eff0d7f1c0e20ed74a28..c731653349d3c8a5dc87cca68fb1ad0719c07795 100644 (file)
@@ -88,7 +88,7 @@ Wrap input lines in each FILE, writing to standard output.\n\
       fputs (_("\
   -b, --bytes         count bytes rather than columns\n\
   -c, --characters    count characters rather than columns\n\
-  -s, --spaces        break at spaces\n\
+  -s, --spaces        break after blanks, or in words greater than WIDTH\n\
   -w, --width=WIDTH   use WIDTH columns instead of 80\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);