top | item 34737699

(no title)

terts | 3 years ago

> In a busybox situation depending on some regex crate is a given anyway

uutils can behave as a busybox-like binary. But I think there's some confusion over the requested feature, because that can't really be done with regex, but you have to inspect the file metadata to check the type of file. That's also why a grep solution doesn't really work, unless you use `ls --classify` and then use the indicators to filter in `grep`.

> if we are talking about separate binaries adding it to `ls` makes it bigger for everyone, even for those who will never use this feature

It's generally not these kinds of features that increase the binary size, but if it does we could also introduce feature flags for it, where you can choose at compile time whether you want the uutils extensions or not. It still adds a bit of a maintenance burden of course.

discuss

order

No comments yet.