logoalt Hacker News

dataflowyesterday at 5:18 PM5 repliesview on HN

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?


Replies

pjmlpyesterday at 5:31 PM

No idea, this is broken at start, I would expect at least a reasoning on how they expect to improve the mess going forward.

Otherwise just don't do it, if it is going to be a mess to work with.

show 2 replies
layer8yesterday at 8:37 PM

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.

show 1 reply
201984yesterday at 5:29 PM

AI said to do it.

lheckeryesterday at 6:25 PM

As hex4def6 said, the idea was that DOS command conflicts are not a good idea, while overriding PowerShell builtins in interactive sessions (PSReadLine) is acceptable, if not a good idea. We open-sourced DOS sort and published a port of the DOS find command. The suite then dispatches to the GNU/DOS variant based on heuristics.

hex4def6yesterday at 5:48 PM

I think if it conflicts with a CMD command it's not shipped, but if it conflicts with a powershell command it's ok.