Bash, tar, and broken pipe

David J. MacKenzie djm at eng.umd.edu
Thu May 23 04:22:11 AEST 1991


I think the reason for the broken pipe is that 'tar tf -' ignores the
padding at the end of the tar file; tar files are always an even
multiple of the blocksize in length, so they get padded with garbage
or nulls.  The 'foo' program writes the nulls into the pipe, but tar
never reads them.
--
David J. MacKenzie <djm at eng.umd.edu> <djm at ai.mit.edu>



More information about the Comp.unix.shell mailing list