Shell constructs that still do not parse after beta.17 (48 recorded Netclaw commands)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 38/100
Rechercherichtung
Start by locating the parser entry point and reproducing the relevant rows from the Netclaw corpus. The issue identifies a redirect after done and ${x:-literal} / ${x%/} as the cheapest candidates, while warning that the redirect needs a planned public API. Done means the selected constructs parse correctly without changing the intentional fail-closed behavior for assignments or exports of PATH, TMPDIR, HOME, or LC_ALL.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Netclaw keeps a corpus of real shell commands that it recorded from live sessions. Netclaw uses the corpus to test shell approval. A row is one entry in the corpus.
After ShellSyntaxTree 0.4.0-beta.17, 48 corpus rows (6,912 calls) still do not parse. These rows are candidates for a later release.
Rows by cause
- 9 rows: a redirect after a compound command (
done 2>/dev/null | head). This needs a planned public API. Otherwise a new property could hide write targets from consumers that do not know it. - 9 rows: arithmetic
$((…)). Bash can run code through an array subscript, so this needs its own bounded grammar. - 8 rows: complex parameter expansion (
${d%/},${x:-y}).${x:-literal}and${x%/}are the likely first candidates. - 3 rows: process substitution
<(…). This needs a new occurrence role or region. - 4 rows, one cause each: a function definition, reserved execution syntax,
bash -c 'set -e …', and an unbalanced quote. - 15 rows: assignment or export of
PATH,TMPDIR,HOME, orLC_ALL. These fail closed on purpose. Keep them that way.
Status
Backlog. The cheapest wins are the redirect after done and the two common expansions.
- Vorherrschende Sprache
- C#
- Sterne
- 15
- Forks
- 0
- Ø Merge
- 9 Std. 54 Min.
- Gemergte PRs (30 T.)
- 40
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Aaronontheweb/ShellSyntaxTree
-
Command words: restore the beta.19 verb-slot ruleEvtl. vergeben @Aaronontheweb hat das vor 1 Tag übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
Aaronontheweb/ShellSyntaxTree#240 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Aaronontheweb/ShellSyntaxTree#236 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Aaronontheweb/ShellSyntaxTree#71 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Aaronontheweb/ShellSyntaxTree
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
Maintainer antworten meist innerhalb von 1 Tag
-
:watch: Not Triaged aspnet-core/svc fundamentals/subsvc Source - Docs.ms
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
dotnet/AspNetCore.Docs#37785 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Azure/azure-sdk-tools#17204 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Проблема с Dotnet RUOffenarea-tutorials needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
dotnet/website-feedback#1779 ·
-
[Bug] SwipeControl in Execute mode with more than one item replaces the whole UI with an error panelEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
microsoft/microsoft-ui-reactor#1344 ·
Maintainer antworten meist innerhalb von 1 Tag