Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto Apto para principiantes
#4,768 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@ericcurtin ya está trabajando en esto.

Desde el 22/10/2026.

  • #4845 de @ericcurtin — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
awk, shell
Área
devops

Línea de trabajo

Empieza con install.sh y sigue find_rpm_asset para ver cómo se pasan sus expresiones regulares de respaldo a awk. Después, lee tasks/scripts/test-install-sh.sh y ejecuta su cobertura para gawk. La tarea estará terminada cuando las instalaciones de RPM no emitan advertencias de awk, los dos puntos de la expresión regular de respaldo se interpreten literalmente y la prueba falle ante cualquier salida en stderr.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Rust
Estrellas
17.1k
Forks
1.8k
Merge medio
2 d 11 h
PR fusionados (30 d)
329

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/OpenShell

Todos los issues de NVIDIA/OpenShell

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.