Add a mode to `coreutils-manager disable` that only removes the PowerShell alias
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- powershell, rust
- Lĩnh vực
- cli, developer-experience
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 5.3k
- Fork
- 110
- Merge trung bình
- 1 giờ 26 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/coreutils
-
Add support for /dev/nullĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
PowerShell integration breaks existing PSConsoleHostReadlineCó thể đã có người làm @markovejnovic đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
Add tty (uutils supports it)Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 50/100
Tất cả issue của microsoft/coreutils
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
compiler P4 perf
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
HerringtonDarkholme/hd-lang#1044 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted r-docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
servo/rust-smallvec#824 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
akitaonrails/ai-usagebar#552 ·
Maintainer thường phản hồi trong vòng 1 ngày