GNU bug report logs - #75916
Making ls(1)'s --format clearer

Previous Next

Package: coreutils;

Reported by: Samuel Thibault <samuel.thibault <at> gnu.org>

Date: Tue, 28 Jan 2025 20:02:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75916 in the body.
You can then email your comments to 75916 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#75916; Package coreutils. (Tue, 28 Jan 2025 20:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Thibault <samuel.thibault <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 28 Jan 2025 20:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Samuel Thibault <samuel.thibault <at> gnu.org>
To: bug-coreutils <at> gnu.org
Subject: Making ls(1)'s --format clearer
Date: Tue, 28 Jan 2025 21:00:37 +0100
[Message part 1 (text/plain, inline)]
Hello,

ls(1) says this about --format:

--format=WORD
       across  -x,  commas -m, horizontal -x, long -l, single-column -1,
       verbose -l, vertical -C

It was not clear at all for my students (and not for me either,
actually), that it's the words that should be used, and not the letters.

The attached patch makes this much more explicit:

--format=WORD where WORD can be
       across  (like  -x),  commas (like -m), horizontal (like -x), long
       (like -l), single-column (like -1), verbose (like  -l),  vertical
       (like -C)

Samuel
[patch (text/plain, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#75916; Package coreutils. (Tue, 28 Jan 2025 20:22:02 GMT) Full text and rfc822 format available.

Message #8 received at 75916 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Samuel Thibault <samuel.thibault <at> gnu.org>, 75916 <at> debbugs.gnu.org
Subject: Re: bug#75916: Making ls(1)'s --format clearer
Date: Tue, 28 Jan 2025 20:20:54 +0000
On 28/01/2025 20:00, Samuel Thibault wrote:
> Hello,
> 
> ls(1) says this about --format:
> 
> --format=WORD
>         across  -x,  commas -m, horizontal -x, long -l, single-column -1,
>         verbose -l, vertical -C
> 
> It was not clear at all for my students (and not for me either,
> actually), that it's the words that should be used, and not the letters.
> 
> The attached patch makes this much more explicit:
> 
> --format=WORD where WORD can be
>         across  (like  -x),  commas (like -m), horizontal (like -x), long
>         (like -l), single-column (like -1), verbose (like  -l),  vertical
>         (like -C)

Right. It might suffice just to add the parentheses,
and then the description would be of consistent form with:

  --sort=WORD          sort by WORD instead of name: none (-U), size  (-S),  time  (-t),
          version (-v), extension (-X), width


  --indicator-style=WORD
          append  indicator with style WORD to entry names: none (default),
          slash (-p), file-type (--file-type), classify (-F)

I'll adjust accordingly and push if you agree.

cheers,
Pádraig




Information forwarded to bug-coreutils <at> gnu.org:
bug#75916; Package coreutils. (Tue, 28 Jan 2025 20:26:01 GMT) Full text and rfc822 format available.

Message #11 received at 75916 <at> debbugs.gnu.org (full text, mbox):

From: Samuel Thibault <samuel.thibault <at> gnu.org>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 75916 <at> debbugs.gnu.org
Subject: Re: bug#75916: Making ls(1)'s --format clearer
Date: Tue, 28 Jan 2025 21:24:57 +0100
Pádraig Brady, le mar. 28 janv. 2025 20:20:54 +0000, a ecrit:
> On 28/01/2025 20:00, Samuel Thibault wrote:
> > ls(1) says this about --format:
> > 
> > --format=WORD
> >         across  -x,  commas -m, horizontal -x, long -l, single-column -1,
> >         verbose -l, vertical -C
> > 
> > It was not clear at all for my students (and not for me either,
> > actually), that it's the words that should be used, and not the letters.
> > 
> > The attached patch makes this much more explicit:
> > 
> > --format=WORD where WORD can be
> >         across  (like  -x),  commas (like -m), horizontal (like -x), long
> >         (like -l), single-column (like -1), verbose (like  -l),  vertical
> >         (like -C)
> 
> Right. It might suffice just to add the parentheses,
> and then the description would be of consistent form with:
> 
>   --sort=WORD          sort by WORD instead of name: none (-U), size  (-S),  time  (-t),
>           version (-v), extension (-X), width
> 
> 
>   --indicator-style=WORD
>           append  indicator with style WORD to entry names: none (default),
>           slash (-p), file-type (--file-type), classify (-F)
> 
> I'll adjust accordingly and push if you agree.

Sure, thanks!

Samuel




bug closed, send any further explanations to 75916 <at> debbugs.gnu.org and Samuel Thibault <samuel.thibault <at> gnu.org> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Wed, 29 Jan 2025 11:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 26 Feb 2025 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.