Unexpected "write error" reported by tar when using it in a pipe

Solution Verified - Updated -

Issue

On RHEL6, tar returns a write error when I want to pipe the output of -ztf through head -1

When I do the same through | sort -r | tail -1 this goes without error.

When I do the same (| head -1) on RHEL 5.7 using the same tar archive it works without errors.

Environment

  • Red Hat Enterprise Linux (RHEL) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content