On Thu, Jun 25, 2015 at 3:54 PM, Rob Landley <[email protected]> wrote:
> 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) (stupid posix. though at least one person on Android was pleased to see od, so i guess it's not as dead as i'd assumed.) > 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...) > (i'd never heard of hexedit, and it's not on the ubuntu default install.) > 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... > hexdump -C had been the local favorite for years, but xxd's killer feature is that it's reversible, for all your hex-editing-from-a-script needs. plus --unlike hexdump and od -- the default output format is useful. > That's why it went on the todo list instead of immediate merging, > anyway. I should at least throw it in pending though... > thanks! (my time's been swallowed up doing NDK stuff lately, but i have enough toybox patches already mailed out to keep you busy for now :-) ) > > Rob > -- Elliott Hughes - http://who/enh - http://jessies.org/~enh/ Android native code/tools questions? Mail me/drop by/add me as a reviewer.
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
