WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Undocumented bzip2 option(??)  (Read 4318 times)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Undocumented bzip2 option(??)
« on: January 25, 2013, 08: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.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Undocumented bzip2 option(??)
« Reply #1 on: January 26, 2013, 04:20:32 AM »
Here's your opportunity to post your first patch to busybox - documentation patches should be fairly easy ;)
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Undocumented bzip2 option(??)
« Reply #2 on: January 26, 2013, 05: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.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Undocumented bzip2 option(??)
« Reply #3 on: January 26, 2013, 06: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.
The only barriers that can stop you are the ones you create yourself.