On Tue, Mar 03, 2026 at 11:06:47PM +0530, Abhishek Kumar 
<[email protected]> wrote:

> Hello,
> 
> My name is Abhishek Kumar, and I am a new contributor interested in GNU
> Findutils and planning to participate in Google Summer of Code.
> 
> While reading the documentation, I noticed that the %G format directive did
> not include a usage example. I have added a small example to improve
> clarity for users.
> 
> I would appreciate any feedback or suggestions for improvement.
> 
> Thank you for your time.
> 
> Best regards,
> Abhishek Kumar

Hi Abhishek,

I don't think that this example is helpful.
I don't think it illustrates anything that isn't
already obvious. Also, it's a very contrived example
that only outputs the numeric group id all by itself.
Is that something anyone would ever want to do?
Probably not.

It would be different if every single -printf conversion
except for %G had an example, but that's not the case.

Perhaps you might want to consider the note above
your change that says:

  TODO: Needs to support # flag and 0 flag

You could implement that, although the # flag is
undefined for integers (man printf(3)), so I wouldn't
expect it to do anything, but the 0 flag would do
somthing useful (i.e. leading zeroes when combined with
a field width specifier). Even that might not be super
useful, but there is a TODO note for it, so it would
probably be appreciated by the maintainers.

cheers,
raf


Reply via email to