Skip to content

Infinite sequences cant be terminated when piped to to ... command. #14862

@NathanSnail

Description

@NathanSnail

Describe the bug

When passing an infinite sequence from 1..inf to to format where format accepts a sequence results in the command being stuck, and not being terminatable with .

How to reproduce

  1. Run 1..inf | to md in a shell
  2. Try to terminate the command

Expected behavior

should cause the command to stop rather than continuing until the oom killer terminates it.

Configuration

key value
version 0.101.0
major 0
minor 101
patch 0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.84.0 (9fc6b4312 2025-01-07)
rust_channel stable-x86_64-unknown-linux-gnu
cargo_version cargo 1.84.0 (66221abde 2024-11-19)
build_time 2025-01-19 18:47:49 +13:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash
installed_plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:signal-cancelProblems with how executions react to signals or attempts at cancellation (CTRL-C)category:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions