Skip to content

Many utils: command subcommand --arg > /dev/full panics #9769

Closed

Description

@oech3
cat --version > /dev/full

thread 'main' (13171) panicked at src/uucore/src/lib/mods/error.rs:751:28:
called `Result::unwrap()` on an `Err` value: Os { code: 28, kind: StorageFull, message: "No space left on device" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Activity

  1. changed the title [-]cat: cat --version > /dev/full panics[/-] [+]Any utility: commandname --version > /dev/full panics[/+] on Dec 22, 2025
  2. oech3 commented on Dec 22, 2025

    @oech3
    ContributorAuthor

    They > /dev/full panics

    • util --version
    • md5sum /dev/null
    • coreutils --list
    • groups
    • rm -rvf a b
    • cp,ln -svf a b
    • date
    • du
    • id
    • stty
    • uname
    • users
    • who
    • nproc
    • stat
    • pinkey
    • od /dev/full > /dev/full
    • logname
    • hostid
    • dirname .
    • dircolors
  3. changed the title [-]Any utility: commandname --version > /dev/full panics[/-] [+]Any utility: commandname --manysubcommand > /dev/full panics[/+] on Dec 22, 2025
  4. oech3 commented on Dec 22, 2025

    @oech3
    ContributorAuthor

    They does not panic:

    • coreutils test --version (no output)
    • coretils echo 1
    • ls,dir,vdir,df,yes
  5. changed the title [-]Any utility: commandname --manysubcommand > /dev/full panics[/-] [+]Many utils: command subcommand --arg > /dev/full panics[/+] on Dec 22, 2025
  6. oech3 commented on Jan 6, 2026

    @oech3
    ContributorAuthor

    @naoNao89 Still

    > coreutils --version > /dev/full
    
    thread 'main' (41809) panicked at /usr/lib/rustlib/src/rust/library/std/src/io/stdio.rs:1165:9:
    failed printing to stdout: No space left on device (os error 28)
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    
  7. oech3 commented on Jan 6, 2026

    @oech3
    ContributorAuthor

    Ofcause still better than panic. But cat --version > /dev/full should not silently succees: #9782

  8. oech3 commented on Jan 7, 2026

    @oech3
    ContributorAuthor

    ln -svf a b > /dev/full

    thread 'main' (1508) panicked at /usr/lib/rustlib/src/rust/library/std/src/io/stdio.rs:1165:9:
    failed printing to stdout: No space left on device (os error 28)
    note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
    fish: Job 1, 'ln -svf a b > /dev/full' terminated by signal SIGABRT (Abort)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions