[Bug 2133156] Re: echo 1 | sort | head -n0: sort: write failed: 'standard output': Broken pipe

Bug Watch Updater 2133156 at bugs.launchpad.net
Wed Jan 21 17:28:26 UTC 2026


** Changed in: rust-coreutils
       Status: Unknown => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2133156

Title:
  echo 1 | sort | head -n0: sort: write failed: 'standard output':
  Broken pipe

Status in rust-coreutils:
  Fix Released
Status in rust-coreutils package in Ubuntu:
  Triaged
Status in rust-coreutils source package in Questing:
  Won't Fix

Bug description:
  dpigs produces its output, then shows an error:

      sort: write failed: 'standard output': Broken pipe

  dpigs end with a 'sort | head' pipeline. This error is due to sort's
  new behaviour in rust-coreutils when being passed into a pipe that's
  closed mid-write, which is exactly what head does.

  Minimally, this is reproducible with:

      $ echo 1 | sort | head -n0
      sort: write failed: 'standard output': Broken pipe

  This is either a latent bug in dpigs or a regression in rust-
  coreutils.

To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2133156/+subscriptions




More information about the foundations-bugs mailing list