Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Command words: restore the beta.19 verb-slot rule

Đã đóng
#240 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Một pull request liên quan đã được merge.

  • #241 của @Aaronontheweb — đã merge

Đá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
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
cli

Hướng nghiên cứu

Start by reading the command-word projection around CommandOccurrence.CommandWords and the change in linked pull request #241. Check the listed command examples, especially how words after options differ in and after the verb slot. Done means the projection matches the pinned outputs while retaining the existing post-verb option-value behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

0.4.0-beta.20 (#237) skips a plain word after an option in the verb slot of CommandOccurrence.CommandWords. Without the grammar of a program, a switch without a value, followed by a subcommand, looks the same as an option and its value. So the projection drops the subcommand. A Netclaw probe showed the cost: a short grant covers a hidden program.

Command beta.20 words
git --no-pager push git
xargs -0 rm xargs
env -i rm env

Decision

The owner restores the beta.19 verb-slot rule. Netclaw stays on the beta.19 behavior and offers an explicit broad grant instead.

  • In the verb slot, a plain word directly after an option stays a command word.
  • After the verb slot, a plain word directly after an option is skipped as that option's value, as before.

Pins: docker --debug run gives docker run, ilspycmd -t X /p/x.dll gives ilspycmd X, git --no-pager push gives git push, and xargs -0 rm gives xargs rm.

Ngôn ngữ chính
C#
Star
15
Fork
0
Merge trung bình
9 giờ 8 phút
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Aaronontheweb/ShellSyntaxTree

Tất cả issue của Aaronontheweb/ShellSyntaxTree

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.