tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: why complain about a broken pipe?

> $ pax -w * | hexdump -C | head -1
> 00000000  1b 5b 3f 31 3b 32 63 1b  5b 3f 31 3b 32 63 1b 5b  |.[?1;2c.[?
> 1;2c.[| 
> pax: Failed write to archive volume: 1 (Broken pipe)
> ATTENTION! pax archive volume change required.
> Ready for archive volume: 2
> Input archive name or "." to quit pax.
> Archive name > ^C
> pax: Signal caught, cleaning up.

> Typing "." yields a list of files not processed, something that would
> be a lot harder to do without ignoring SIGPIPE.  ;-)

It's also pretty much useless, because there may be a semi-arbitrary
number of files completely processed by pax but lost when the pipes'
buffers were thrown away with the pipes.

Even knowing that the archive wasn't completely read isn't really of
much use; as you pointed out, failure to read input is not an error.
Why should it suddenly become one when the input in question is an
archive?  Even if the archive is piped into ssh?

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index