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: tlaronde%kergis.com@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 09:16:43 +0200

 On Fri, Oct 11, 2024 at 10:10:02PM +0000, RVP via gnats wrote:
 >[...]
 >  
 >  Also fixed, below, I think--please try.
 >  
 
 To fix it is evidently good, but the question, for me, was rather
 to answer first to:
 
 1) What was the initial purpose of the flag? 
 
 2) Is the function described in 1) necessary?
 
 If the feature can be obtained easily with a simple combination of
 other POSIX utilities, Ocam's razor should apply: don't add another
 option; there are, IMHO, already far too many in ls(1)---almost
 all the latin letters, lower and upper case!
 
 FWIW is worth, if the functionality is what is described in the man
 page:
 
 $ find . -type f | sed 's!^.*/\([^/]*\)$!\1!' 
 
 does the trick with the minimal cost of one supplementary exec (the
 one of sed(1)).
 -- 
         Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
                      http://www.kergis.com/
                     http://kertex.kergis.com/
 Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C
 


Home | Main Index | Thread Index | Old Index