Web lists-archives.com

Re: question about ls

On Fri, Sep 28, 2018 at 08:58:05AM +0200, tomas@xxxxxxxxxx wrote:
ls should be considered a user interface, not an API.

One should strive to minimize these differences, though. This is, of
course, just my opinion, but you can pry... (you know the rest ;-)

Sure you can--you use find. There are just too many different ways things can fail if you use ls, and too many ways that even things people think will help will fail because of differences between platforms. Making it "kinda better" will just create more traps like those unless you add a lot of explicit options to request specific output--which, again, ends up looking like find.

Mike Stone