[Toybox] xxd -ps

enh enh at google.com
Thu Nov 15 16:38:16 PST 2018


so xxd has some weird cancers, and i've been ignoring them, and have
uploaded https://android-review.googlesource.com/c/platform/build/+/828285
to AOSP to stop using -ps, but i'm mildly curious...

given that xxd has a -p and a -s (which takes a numeric argument),
what would we have to do to also accept -ps as a synonym for -p
(rather than as -p plus -s but missing a numeric argument)? i'm
assuming that would be awful and not worth it?

from the xxd man page:

       -p | -ps | -postscript | -plain
              output  in  postscript  continuous  hexdump style. Also known as
              plain hexdump style.

is there a way to say "this bizarre command's longopts actually use a
single -"? are there any commands other than xxd that would even use
this?


More information about the Toybox mailing list