<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 3:54 PM, Rob Landley <span dir="ltr"><<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 05/09/2015 11:36 PM, enh wrote:<br>
> i've long been a hexdump(1) user, but someone on my team habitually uses<br>
> xxd(1) and seeing that it was bi-directional was enough to switch my<br>
> alleigance. this patch doesn't add that part, but it does cover the<br>
> basic use cases.<br>
><br>
> (right now Android just has a shell function 'hd'.)<br>
<br>
</span>Sigh. I did od because posix said to<br>
(<a href="http://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html" rel="noreferrer" target="_blank">http://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html</a>) </blockquote><div><br></div><div>(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.)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">and<br>
did hexedit because it was interactive. (Although I broke out the<br>
draw_line() logic thinking I could genericize stuff and maybe reuse code<br>
here...)<br></blockquote><div><br></div><div>(i'd never heard of hexedit, and it's not on the ubuntu default install.)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Now here's a third that doesn't share code with either of the first two.<br>
It's small, it looks simple, and it's the third implementation of the<br>
same stuff...<br></blockquote><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That's why it went on the todo list instead of immediate merging,<br>
anyway. I should at least throw it in pending though...<br></blockquote><div><br></div><div>thanks!</div><div><br></div><div>(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 :-) )</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Rob<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Elliott Hughes - <a href="http://who/enh" target="_blank">http://who/enh</a> - <a href="http://jessies.org/~enh/" target="_blank">http://jessies.org/~enh/</a><br>Android native code/tools questions? Mail me/drop by/add me as a reviewer.</div>
</div></div>