Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#4,768 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ericcurtin đang làm issue này rồi.

Từ ngày 22/10/2026.

  • #4845 của @ericcurtin — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
awk, shell
Lĩnh vực
devops

Hướng nghiên cứu

Bắt đầu với install.sh và lần theo find_rpm_asset để xem các biểu thức chính quy dự phòng của nó được truyền cho awk như thế nào. Sau đó, đọc tasks/scripts/test-install-sh.sh và chạy phần kiểm thử độ bao phủ cho gawk. Hoàn tất khi quá trình cài đặt RPM không phát ra cảnh báo awk, cả hai dấu chấm trong biểu thức chính quy dự phòng đều được khớp theo nghĩa đen và bài kiểm thử thất bại nếu có bất kỳ đầu ra nào trên stderr.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
17.1k
Fork
1.8k
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
370

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/OpenShell

Tất cả issue của NVIDIA/OpenShell

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.