[Toybox] [PATCH] xxd

Rob Landley rob at landley.net
Thu Jun 25 15:54:20 PDT 2015


On 05/09/2015 11:36 PM, enh wrote:
> i've long been a hexdump(1) user, but someone on my team habitually uses
> xxd(1) and seeing that it was bi-directional was enough to switch my
> alleigance. this patch doesn't add that part, but it does cover the
> basic use cases.
> 
> (right now Android just has a shell function 'hd'.)

Sigh. I did od because posix said to
(http://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html) and
did hexedit because it was interactive. (Although I broke out the
draw_line() logic thinking I could genericize stuff and maybe reuse code
here...)

Now here's a third that doesn't share code with either of the first two.
It's small, it looks simple, and it's the third implementation of the
same stuff...

That's why it went on the todo list instead of immediate merging,
anyway. I should at least throw it in pending though...

Rob

 1435272860.0


More information about the Toybox mailing list