coreutils
[Top][All Lists]
Advanced

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

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


From: Collin Funk
Subject: Re: [PATCH] doc: fold: clarify operation of -s in --help
Date: Tue, 25 Nov 2025 18:32:29 -0800
User-agent: Gnus/5.13 (Gnus v5.13)

PƔdraig Brady <P@draigBrady.com> writes:

> * 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(-)

Ah, I guess one might expect 'fold' to not split words.

> 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);

I think "words longer than WIDTH" is a bit more clear than "words
greater than WIDTH". WDYT?

Collin



reply via email to

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