Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Easily create HFS-aware PKZIP and unix archives' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Easily create HFS-aware PKZIP and unix archives
Authored by: LC on Dec 02, '03 02:00:26PM

Yecch, it seems that ditto puts the "-v" or "-V" output on stdout,
so if you use "-" as the archive specifier (to use a pipe or file
redirect), those messages corrupt the archive ... I had wondered
why I'd seen cpio errors on the unpack side (I usually archive/
dearchive through a compressed remote shell;). Is it documented
somewhere that ditto's verbose messages don't go to stderr when
the archive is "-"? Thanks; Larry.



[ Reply to This | # ]
Easily create HFS-aware PKZIP and unix archives
Authored by: LC on Dec 02, '03 04:46:05PM
To make it clearer, these (in 10.3.1) work fine:
 pax -wv mydir | pax
 pax -w  mydir | pax -v

 tar cvf - mydir | tar t

 ditto -c mydir1 - | ditto -V -x - /tmp/mydir2
The following doesn't work: (because the archive gets ruined)
 ditto -V -c mydir1 - | ditto -x - /tmp/mydir2

 ditto: cpio read error: Illegal seek
 ditto: xxx: Broken pipe
 (...)
Remove the "-V" from that last command, and it works o.k. (I just submitted the above in bugreport;) Larry.

[ Reply to This | # ]