Add a mode to `coreutils-manager disable` that only removes the PowerShell alias
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- powershell, rust
- Ambito
- cli, developer-experience
Direzione di ricerca
Start by reading the PowerShell integration page and locating the profile snippet that rewrites interactive input; the issue does not name its file or a test. Trace how command names are rewritten and how aliases such as sort resolve. Done means sort invokes Sort-Object in an object pipeline while sort.exe still invokes Coreutils.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version: Coreutils for Windows 2026.9.3 (installed via winget, interactive setup)
PowerShell: 7.6.7
Integration: "Install for all users"
Steps to reproduce:
- Install with PowerShell integration enabled.
- Open a new PowerShell session.
- Run: gci | sort
Expected:
sort resolves to the built-in alias Sort-Object and sorts the objects.
sort.exe should be the explicit way to call the Coreutils version.
Actual:
The Coreutils sort runs. The objects are converted to text, and the lines are sorted alphabetically, including the table header lines.
Get-Alias sort and Get-Command sort both still show sort -> Sort-Object, so the alias is still there. It's bypassed because the snippet rewrites interactive input.
The "PowerShell Integration" page in the installer says:
Coreutils needs a small profile snippet to work inside PowerShell. Without it, PowerShell mangles argument quoting and globbing, so most Coreutils commands wouldn't behave correctly. The snippet does not remove PowerShell's built-in aliases. It rewrites interactive input so names such as cat, cp, and ls resolve to the Coreutils versions.
Based on "does not remove PowerShell's built-in aliases", I expected the aliases to keep working. That's technically true, but in effect the alias can't be used from the prompt anymore. For sort in particular this breaks a very common PowerShell idiom.
Request:
Either don't rewrite names that are object-pipeline cmdlet aliases (sort at least), or provide a per-command opt-out for the rewrite. That way sort stays Sort-Object and sort.exe stays Coreutils.
- Lingua principale
- Rust
- Stelle
- 5.3k
- Fork
- 110
- Merge medio
- 1h 26m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/coreutils
-
Add support for /dev/nullAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
PowerShell integration breaks existing PSConsoleHostReadlineForse già presa @markovejnovic l’ha presa 3 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
-
Add tty (uutils supports it)Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 50/100
Tutte le issue di microsoft/coreutils
Issue simili
-
spurctld: a user with no usage gets a lower fair-share factor than a user with a little usageAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
area:ci kind:bug priority:p3 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
srikanth235/centraid#1155 ·
I maintainer di solito rispondono entro 1 giorno
-
dotfiles: failed batch untrack removes earlier tracking declarationsForse già presa @jdx l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni