Date: Fri, 14 May 2021 11:43:45 +1000 From: jake h <jakehfreebsd@gmail.com> To: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net> Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, current@freebsd.org Subject: Re: HEADSUP: i2c(8) has been washed and ironed Message-ID: <CAF4CO338-jQippKRzEHHyQf3WRORUAXGWgbt9ASqPJky=%2BqXeA@mail.gmail.com> In-Reply-To: <202105131913.14DJDCZa077839@gndrsh.dnsmgr.net> References: <6070.1620907795@critter.freebsd.dk> <202105131913.14DJDCZa077839@gndrsh.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> What about adding a new flag to enable strtoul behavior? I have had a look at the available flag options for a potential strtoul flag, and a flag that makes sense to me is [-s] / [--strtoul]. [-s] is not currently being used in i2c, if we wanted to use it. On Fri, May 14, 2021 at 5:13 AM Rodney W. Grimes < freebsd-rwg@gndrsh.dnsmgr.net> wrote: > > I have renovated the i2c(8) program and while I belive all argument > > processing is 100% compatible, various undocumented aspects of the > > program may have changed, amongst these precisely what goes to > > stdout and stderr. > > > > Apologies if this breaks any of your scripts. > > > > <bikeshed> > <blue> > > > There is one aspect of this program which I have not changed, but > > which bugs me utterly: All arguments are in hex, except [-c count] > > which is decimal. > > > > My personal preference would be if all the arguments called strtoul(3) > > with zero third argument, so that users can use decimal, octal or > > hex as they prefer, but I fear that would break pretty much every > > single script. > > > > Alternatively [-c count] could be changed to be hex like the rest. > > What about adding a new flag to enable strtoul behavior? > Or invoked by another name i2cX and install a hard link? > > > </bikeshed> > </blue> > > > phk@FreeBSD.ORG | TCP/IP since RFC 956 > -- > Rod Grimes > rgrimes@freebsd.org > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF4CO338-jQippKRzEHHyQf3WRORUAXGWgbt9ASqPJky=%2BqXeA>