Re: [PATCH] hexdump: automatically use -C when called as hd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Sami Kerola <kerolasa@xxxxxx> [200623 13:17]:
> On Tue, 23 Jun 2020 at 01:15, Chris Hofstaedtler <zeha@xxxxxxxxxx> wrote:
> >
> > When invoking hexdump as hd enable the "Canonical" format to by
> > default, implying the -C option.
> >
> > This is historic behaviour on Debian and apparently also on FreeBSD.
> > Some Debian users have asked for this to be restored, after Debian
> > switched to util-linux' hexdump and hd.
> 
> Wouldn't it make more sense to add an alias to a global profile?
> 
> alias hd='hexdump -C'

That's not scalable on Debian given the number of shells we ship.
Also, util-linux already has a number of binaries that modify their
behaviour depending on the name they are invoked as.

FreeBSD has this here:
https://github.com/freebsd/freebsd/blame/master/usr.bin/hexdump/hexsyntax.c#L59
And supports it for over 24 years; I believe Debian shipped with
this support since basically forever, too.

Chris



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux