Lauri Tirkkonen(la...@hacktheplanet.fi) on 2020.01.29 01:31:56 +0200:
> On Tue, Jan 28 2020 18:03:19 +0100, Florian Obser wrote:
> > On Tue, Jan 28, 2020 at 09:58:40AM -0700, Todd C. Miller wrote:
> > > On Mon, 27 Jan 2020 18:29:39 -0500, Daniel Jakots wrote:
> > > 
> > > > Can't you achieve what you want with `du -sh * | sort -h`? du(1)'s -h
> > > > options will automatically select the best suffix and sort(1)'s -h
> > > > will sort first using the suffix then the numerical value.
> > > 
> > > Yes, I forgot about "sort -h".  Old habits die hard :-)
> > 
> > ... which is not in posix, netbsd nor illumos.
> 
> So, do you think that 'du -m' will be in all those then? POSIX doesn't
> have it [0].
> 
> The way I see it, the entire conversation in this thread is about doing
> things that might be useful to people. IMO, arguing about where
> extensions are or aren't implemented isn't productive.

Yes it is. We try to avoid adding options whereever we can, because

* every option letter we grab thats not used for the same purpose elsewhere
  can crate problems down the road
* more options means more bugs

B

> 
> [0]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html
> 
> -- 
> Lauri Tirkkonen | lotheac @ IRCnet
> 

Reply via email to