stdbuf: -oL and -o0 have no effect on uniq

Đang mở
#16,649 3 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
63/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Start by locating uniq's output handling and the implementation of stdbuf in the repository; the issue does not name source files or tests. Reproduce the reported pipeline with stdbuf -oL uniq and stdbuf -o0 uniq, then run bash util/build-gnu.sh && bash util/run-gnu-test.sh tests/misc/stdbuf.sh. Done means output arrives line by line as it does with GNU coreutils and the test passes.

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

Mô tả

gnu testsuite good first issue U - stdbuf U - uniq

stdbuf -oL / stdbuf -o0 have no effect on uniq: its output is only flushed at exit.

$ (echo first; sleep 1; echo second) | stdbuf -oL uniq | while read l; do echo "$(date +%S) $l"; done

uutils: both lines arrive together after 1s.
GNU 9.12: first arrives immediately, second 1s later.

Same with -o0.

GNU test: bash util/build-gnu.sh && bash util/run-gnu-test.sh tests/misc/stdbuf.sh
It is listed in ignore-intermittent.txt, but it failed in all of the last 40 GnuTests runs.

Part of #14705

Ngôn ngữ chính
Rust
Star
24.4k
Fork
2.2k
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
402

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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/coreutils

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

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.