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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.