Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Shell constructs that still do not parse after beta.17 (48 recorded Netclaw commands)

Aperta
#227 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
compilers

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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, or LC_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.

Lingua principale
C#
Stelle
15
Fork
0
Merge medio
9h 8m
PR unite (30g)
46

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Aaronontheweb/ShellSyntaxTree

Tutte le issue di Aaronontheweb/ShellSyntaxTree

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.