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

bug(install): install.sh prints gawk "escape sequence \. treated as plain ." warnings on RPM hosts

Aperta Adatta ai principianti
#4,768 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ericcurtin ci sta già lavorando.

Dal 22/10/2026.

  • #4845 di @ericcurtin — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
awk, shell
Ambito
devops

Direzione di ricerca

Inizia con install.sh e segui find_rpm_asset per vedere come le sue espressioni regolari di fallback vengono passate ad awk. Poi leggi tasks/scripts/test-install-sh.sh ed esegui la relativa copertura per gawk. Il lavoro è completato quando le installazioni RPM non producono avvisi di awk, entrambi i punti nell’espressione regolare di fallback vengono interpretati letteralmente e il test fallisce in presenza di qualsiasi output su stderr.

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

Descrizione

state:triage-needed
User Story

I use OpenShell (0.1.3, checked against 0.1.5) on RHEL 9, and I install it with the published install.sh. Each RPM install prints three gawk warnings in the middle of the installer output. Users ask whether the install failed.

Problem Statement

find_rpm_asset builds its fallback regexes as "^openshell-[0-9].*\\.${_arch}\\.rpm$" (and the same for the gateway and prover packages). It passes them to awk with -v fallback_re=.... awk processes escape sequences in -v values, so the \. reaches awk as an escape:

  • gawk warns escape sequence '\.' treated as plain '.' once per regex.
  • The dot then matches any character instead of a literal dot.
Impact / Why This Matters
  • Every RPM install shows three warnings that look like errors.
  • The fallback match is looser than intended.
  • There is no workaround for users of the published script. A wrapper that pins the script by digest cannot change it.
Acceptance Criteria
  • An RPM install on RHEL 9 (gawk) prints no awk warnings.
  • The fallback regex matches a literal . before the arch and before rpm.
  • tasks/scripts/test-install-sh.sh covers find_rpm_asset under gawk and fails on any stderr output.
Reproduction Steps
  1. On RHEL 9, run curl -fsSL https://raw.githubusercontent.com/NVIDIA/OpenShell/v0.1.5/install.sh | sh (RPM path).

Expected: no awk warnings.
Actual: three gawk warnings.

Suggested UX (if applicable)

None.

Environment
  • OpenShell install.sh and checksum-verified RPM packages from v0.1.5.
  • RHEL 9.8 UBI RPM container on a RHEL 9.8 host, kernel 5.14.0-687.45.1.el9_8.x86_64; gawk 5.1.0; Docker 29.8.1; Podman 5.8.2. Host KVM was present but not used for this installer repro.
Logs
awk: warning: escape sequence `\.' treated as plain `.'
awk: warning: escape sequence `\.' treated as plain `.'
awk: warning: escape sequence `\.' treated as plain `.'
openshell: installed openshell RPM packages from v0.1.5
Lingua principale
Rust
Stelle
17.1k
Fork
1.8k
Merge medio
2g 8h
PR unite (30g)
370

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 NVIDIA/OpenShell

Tutte le issue di NVIDIA/OpenShell

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.