Tiny Core Base > TCB Tips & Tricks

Undocumented bzip2 option(??)

(1/1)

tinypoodle:
I am getting the impression there may be an undocumented "-t" (test file integrity) option for bzip2 (busybox applet).
When running bzip2 with option "-t" under very limited testing it would exit with error msg on a damaged archive while it would silently exit on an intact archive. No verbosity though whatsoever, but could still prove to be handy in some cases if confirmed.

curaga:
Here's your opportunity to post your first patch to busybox - documentation patches should be fairly easy ;)

tinypoodle:
Hmm, your comment made me do some research...  :o
Turns out the option is based on a patch by Denis Vlasenko himself from 2008.
http://git.busybox.net/busybox/commit/?id=55da0be405bf4246ceb644b17b91d2686a9f1399
In this case my guess would be that it is possibly a conscious decision not to point out the option in a different way.

curaga:
Implemented options should be shown in --help - this just means there's more than one applet. Looks like gunzip has it in there, but not gzip.

Navigation

[0] Message Index

Go to full version