[Bug 3769] Non compliant option on od

bugzilla at busybox.net bugzilla at busybox.net
Sat May 21 16:51:22 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3769

Denys Vlasenko <vda.linux at googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com>  ---
> I just report it because I ran into it while improving a script to make it run
> on Synology DS1010+ that uses 
> 
> BusyBox v1.16.1 (2011-02-25 19:05:47 CST) multi-call binary.
> 
> The whole story (with explained and workaround-ed differences) is here
> http://forum.ubuntu-fr.org/viewtopic.php?id=408024&p=2 (sorry it is in French),
> starting at post #36 and next.
> 
> The "bug" occurs on 'od', which is not part of the 'core' for Synology DS1010+
> but belongs to 'texutils'. Sorry don't know which version of 'textutil' it is
> exactly, but it is the one available for Synology DS1010+ with the extension
> process.
> 
> So here is what the help of od says:
> 
> od --help
> Usage: od [OPTION]... [FILE]...
>   or:  od --traditional [FILE] [[+]OFFSET [[+]LABEL]]
> 
> Write an unambiguous representation, octal bytes by default,
> of FILE to standard output.  With more than one FILE argument,
> concatenate them in the listed order to form the input.
> With no FILE, or when FILE is -, read standard input.
> 
> All arguments to long options are mandatory for short options.
>   -A, --address-radix=RADIX   decide how file offsets are printed
>   -j, --skip-bytes=BYTES      skip BYTES input bytes first
>   -N, --read-bytes=BYTES      limit dump to BYTES input bytes
>   -s, --strings[=BYTES]       output strings of at least BYTES graphic chars
> 
> 
> Please notice the -s (lowercase 's'), short option for --string
> 
> (Be aware also that in the process, the tester warped to Busybox 1.10.3, I
> don't know it that has an effect on the options recognized by 'od')
> 
> Unfortunately that is NOT COMPLIANT.
> The compliant short form is -S (uppercase 'S')

busybox od uses -S, not -s, since 1.3.x

I updated help in git, now it reads:

$ ./busybox od --help
BusyBox v1.19.0.git (2011-05-14 04:11:13 CEST) multi-call binary.

Usage: od [-abcdfhilovxs] [-t TYPE] [-A RADIX] [-N SIZE] [-j SKIP] [-S MINSTR]
[-w WIDTH] [FILE...]

Print FILEs (or stdin) unambiguously, as octal bytes by default

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list