Sergey Poznyakoff wrote:
Vitaly V. Ch <[EMAIL PROTECTED]> ha escrit:
On some machines run under slackware 10.2 next test always fail:
for ((i=0;i<1000;i++)); do echo $i >$i; tar cz $i >>file.tgz; done;
gzip -t -v file.tgz
It should have failed. You cannot glue together two compressed files and
expect the result to be a valid compressed file.
That doesn't quite explain why his second example always
works for him, though:
but following test always success on all machines:
for ((i=0;i<1000;i++)); do echo $i >$i; tar c $i | gzip >>file.tgz;
done; gzip -t -v file.tgz
It does sound as though tar is exiting before the child
gzip under some circumstances.
Tim Kientzle