NetBSD-Bugs archive

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

Re: bin/58740: ls: flag -O incorrectly described in MAN and buggy



The following reply was made to PR bin/58740; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/58740: ls: flag -O incorrectly described in MAN and buggy
Date: Sat, 12 Oct 2024 18:10:45 +0700

     Date:        Sat, 12 Oct 2024 07:20:02 +0000 (UTC)
     From:        "tlaronde%kergis.com@localhost via gnats" <gnats-admin%NetBSD.org@localhost>
     Message-ID:  <20241012072002.6897E1A923E%mollari.NetBSD.org@localhost>
 
  
   |  $ find . -type f | sed 's!^.*/\([^/]*\)$!\1!' 
   |  
   |  does the trick with the minimal cost of one supplementary exec (the
   |  one of sed(1)).
 
 I don't know anything about the -O option, or why it is there,
 but that is not a replacement.   Do remember that all those many
 options you mentioned ls having can be combined with -O, duplicating
 all of that in some kind of script or function (probably using stat(1)
 sort(1), ... is probably possible, but not likely a productive use of
 anyone's time.)
 
 kre
 


Home | Main Index | Thread Index | Old Index