coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] doc: fold: clarify operation of -s in --help


From: Pádraig Brady
Subject: [PATCH] doc: fold: clarify operation of -s in --help
Date: Tue, 25 Nov 2025 22:52:10 +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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fold.c b/src/fold.c
index 6dbf013e2..075dc7532 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -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 > WIDTH\n\
   -w, --width=WIDTH   use WIDTH columns instead of 80\n\
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
-- 
2.51.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]