Tiny Core Linux

Tiny Core Base => TCB Tips & Tricks => Topic started by: tinypoodle on January 25, 2013, 05:33:00 PM

Title: Undocumented bzip2 option(??)
Post by: tinypoodle on January 25, 2013, 05:33:00 PM
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.
Title: Re: Undocumented bzip2 option(??)
Post by: curaga on January 26, 2013, 01:20:32 AM
Here's your opportunity to post your first patch to busybox - documentation patches should be fairly easy ;)
Title: Re: Undocumented bzip2 option(??)
Post by: tinypoodle on January 26, 2013, 02:21:45 AM
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.
Title: Re: Undocumented bzip2 option(??)
Post by: curaga on January 26, 2013, 03:40:32 AM
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.