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

sysctl: -N and -q are accepted together with key operands

Đã đóng
#809 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

Một pull request liên quan đã được merge.

  • #812 của @SichenLiang — đã merge

Đá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
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Compare uutils behavior with procps-ng 4.0.7 for sysctl -N -q with a key operand, including joined and long options and options after the operand. Check the existing sysctl option handling and tests; done means this combination is rejected unless -a, -A, -X, or --all is present. An open linked pull request is already addressing the issue.

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

Mô tả

With a key operand, uutils accepts -N together with -q and prints the name. procps-ng 4.0.7 rejects the combination.

$ procps sysctl -N -q kernel.ostype; echo $?
kernel.ostype
0

$ /usr/sbin/sysctl -N -q kernel.ostype; echo $?
sysctl: options -N and -q cannot coexist
Try `sysctl --help' for more information.
1

Joined and long forms behave the same way, as do options placed after the operand. procps-ng accepts the combination when -a, -A, -X, or --all is present.

Ngôn ngữ chính
Rust
Star
117
Fork
41
Merge trung bình
1 ngày 41 phút
Pull request đã merge (30 ngày)
20

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 uutils/procps

Tất cả issue của uutils/procps

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.