logoalt Hacker News

pjmlpyesterday at 5:25 PM4 repliesview on HN

> Several commands share names with built-ins in CMD and PowerShell. Whether the Coreutils version runs depends on the shell, the PATH order, and (for PowerShell) the alias table.

Well this is not very satisfying, what about proving a way where it actually works without us having to guess where the failure root cause happens to be?


Replies

chasilyesterday at 6:06 PM

Fully-qualify the path to the target program, and it should be no concern.

show 2 replies
layer8yesterday at 8:14 PM

How do you propose for this to be solved without breaking existing CMD batch files and PowerShell scripts and invocations by applications?

show 1 reply
scoopryesterday at 7:42 PM

Maybe it’s for the llm tool use PATH?

That was the most plausible reason to even mention it, that I could think of.

ocdtrekkieyesterday at 6:08 PM

The best part is the reason it conflicts with a lot of PowerShell is PowerShell shimmed Linux commands over to their Windows equivalents for years even though the flags were different.

So ls in many systems will match the behavior of dir, and only accept the flags for dir. But if you use a system with the newer coreutils release here, ls will expect ls flags!

show 1 reply