bug(install): install.sh prints gawk "escape sequence \. treated as plain ." warnings on RPM hosts
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 82/100
Direção de pesquisa
Comece por install.sh e acompanhe find_rpm_asset para ver como suas expressões regulares de fallback são passadas para awk. Em seguida, leia tasks/scripts/test-install-sh.sh e execute a cobertura para gawk. O trabalho estará concluído quando as instalações de RPM não emitirem avisos de awk, os dois pontos na expressão regular de fallback forem correspondidos literalmente e o teste falhar diante de qualquer saída em stderr.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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 beforerpm. -
tasks/scripts/test-install-sh.shcoversfind_rpm_assetunder gawk and fails on any stderr output.
Reproduction Steps
- 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.shand 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
- Linguagem predominante
- Rust
- Estrelas
- 17.1k
- Forks
- 1.8k
- Merge médio
- 2d 9h
- PRs com merge (30d)
- 355
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/OpenShell
-
bug: workspace access hint suggests a --subject command that fails for hyphen-leading OIDC subjectsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
bug(sdk/go): browser login callback binds 127.0.0.1 but redirect_uri uses localhostTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertastate:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
NVIDIA/OpenShell#4518 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
Todas as issues de NVIDIA/OpenShell
Issues semelhantes
-
checkpoint/verify/rebuild_indexes on a thread holding a WriteTransaction deadlock instead of INT-001Abertabug known-issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
project-minigraf/minigraf#734 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 4 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
bug CLI documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
openai/codex#56630 · 3 comentários · 3 reações ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
DayuanJiang/PecoFence#139 ·
Mantenedores costumam responder em até 1 dia