Live data from Hacker News

Coreutils for Windows

github.com

211–220 of 260 posts

Re: Coreutils for Windows

#211
post #175
post #6

So dir is not shipped due to conflict with built-ins, echo and rmdir are shipped despite conflicts, and sort is deemed not to have a conflict? What is the logic?

My guess is that some commands are compatible because they behave the same on both systems when used without command line options, and the implementation can distinguish between DOS and Unix options.

Isn't echo different even without options?

Re: Coreutils for Windows

#212
post #102
post #70

Earlier quoted context omitted.

> I've mostly avoided CRLF by configuring text editors and git to use LF, That has been my experience as well. I can't remember the last time I had an issue related to CRLF.

Yesterday for me was the last time. Visual studio 2026 default to crlf I think maybe and I have autoctlf in git turned off. I should probably turn that back on.

I think you want a .gitattributes file where you set the EOL of the file types you care about. And you might want to try autocrlf=input.

Re: Coreutils for Windows

#214

Earlier quoted context omitted.

It’s arcane and technical for no reason. /Users/ME/Documents, /Media/MyThumbDrive/…, etc. are much clearer and less confusing than C:\…

At the very least, drive letters do make SMB shares a bit simpler for the non technical folks. T:\MyData is easier for them than \\0010-somehost-win.site1.mycorp.loca\Share01\MyData\ I used to support a group of completely tech illiterate users in construction & manufacturing. Them figuring out T:\ was hard enough, ask them to type in a UNC path into the address bar in explorer and you get "Wtf is file explorer? Wtf…

Then in this hypothetical world you could mount \\0010-somehost.win.site1.mycorp.local\Share01 to /Share01 rather than T:

Re: Coreutils for Windows

#215
post #195
post #180

Earlier quoted context omitted.

NT kernel can and did implement POSIX. Multiple times even. That's how WSL1 works. NTFS can also support Unix-like permissions. There are ACLs for Owner and Group. However, I'm not keen on using yet another Unix clone as well. At least Windows NT brought the world into 90s in the OS state-of-the-art where Unix clones are stuck in 80s and each of them patch around the deficiencies of POSIX. Native asynchronous APIs an…

POSIX was implemented as a subsystem. And it was never _fully_ implemented, as my post said. The NT kernel doesn't support certain POSIX semantics (fork).

Isn’t Win32 also implemented as a subsystem?

Re: Coreutils for Windows

#217

Busybox for Windows is the best implementation of coreutils for it, far and away. The maintainer is also very knowledgeable and responsive and actually merges community PRs which is incredible. Microsoft isn't going to do that, so why bother? Microsoft's solution will be a hot buggy mess that needs its own workaround and quirks day 1.

BusyBox IS NOT COREUTILS. ITS NOT EVEN REMOTELY THE SQME THING. It's something entirely different and not even remotely an adequate replacement

Re: Coreutils for Windows

#218

Was not expecting EEE for Coreutils but I suppose it’s the natural consequence of the MIT license used for uutils so not totally unexpected. It’s annoying enough to support the differences between BSD and Linux, and now Linux has GNU and uutils, and now we’re gonna need Windows variant of uutils…ugh.

MIT is a good license to maximize proliferation of use.

It seems to be working as intended for uutils.

Re: Coreutils for Windows

#220
post #177
post #167

Earlier quoted context omitted.

The same way as cygwin, mingw? Start a terminal session where they come first in the PATH? That way one knows where they are getting into.

Well, you can have that now? Where is the problem?

The problem is that not only I have to manually do it myself, it is incomplete, quite the opposite of what is already out there.

In what sense is this half baked job supposed to be better?

Post reply on HN