Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Geschlossen
#240 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Ein zugehöriger Pull Request wurde bereits gemerged.

  • #241 von @Aaronontheweb — gemerged

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
csharp
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C#
Sterne
15
Forks
0
Ø Merge
9 Std. 8 Min.
Gemergte PRs (30 T.)
46

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Aaronontheweb/ShellSyntaxTree

Alle Issues in Aaronontheweb/ShellSyntaxTree

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.