Re: [Toybox] Numeric values in dd operands

2018-02-20 Thread scsijon
fyi, Both quaternary (base4) and octal (base8) are used by analog device inputs even today. There's a lot of security systems out there! And you can even get them storing and using the data stacked in the rom, where octal can appear as hexidecimal but are really upper and lower octal pairs,

Re: [Toybox] Numeric values in dd operands

2018-02-20 Thread Robert Thompson
I've seen a fair number of scripts that use printf's ability to interpret hex and octal arguments. This is often combined with printf's ability to format outputs into decimal, octal, or hex, to make a convenient base-shifter. For this discussion, it's the argument conversion, not the formatting

Re: [Toybox] Numeric values in dd operands

2018-02-20 Thread enh
On Tue, Feb 20, 2018 at 9:57 AM, Rob Landley wrote: > On 02/20/2018 11:32 AM, enh wrote: >> On Tue, Feb 20, 2018 at 9:28 AM, Rob Landley wrote: >>> A real user piped up and said their existing script doesn't work with my >>> tool. >>> That feedback is of

Re: [Toybox] Numeric values in dd operands

2018-02-20 Thread Rob Landley
On 02/20/2018 11:32 AM, enh wrote: > On Tue, Feb 20, 2018 at 9:28 AM, Rob Landley wrote: >> A real user piped up and said their existing script doesn't work with my >> tool. >> That feedback is of interest to me. > > and as the person who set us down the strtol path >

Re: [Toybox] Numeric values in dd operands

2018-02-20 Thread enh
On Tue, Feb 20, 2018 at 9:28 AM, Rob Landley wrote: > On 02/19/2018 09:09 PM, scsijon wrote: >> On 02/20/2018 08:32 AM, toybox-requ...@lists.landley.net wrote: >>> Are you actually using that mid-number multiplier? I was asking on the list >>> last >>> year if anyone anywhere

Re: [Toybox] Numeric values in dd operands

2018-02-20 Thread Rob Landley
On 02/19/2018 09:09 PM, scsijon wrote: > On 02/20/2018 08:32 AM, toybox-requ...@lists.landley.net wrote: >> Are you actually using that mid-number multiplier? I was asking on the list >> last >> year if anyone anywhere actually did that. (It's a relic from before the >> shell >> provided

Re: [Toybox] Numeric values in dd operands

2018-02-19 Thread scsijon
net> To: Stephen Spanton <stephen.span...@frontier-silicon.com>, toybox@lists.landley.net Subject: Re: [Toybox] Numeric values in dd operands Message-ID: <099ad551-533d-1ead-ffdd-8748db34e...@landley.net> Content-Type: text/plain; charset=windows-1252 And permission to reply to this

Re: [Toybox] Numeric values in dd operands

2018-02-19 Thread Rob Landley
And permission to reply to this publicly recieved, so... On 02/16/2018 10:13 AM, Stephen Spanton wrote: > Hi > > I was using toybox version 0.6.1 and tried updating to 0.7.5, so I am not sure > where the following problem was introduced. > > I noticed a problem with numeric arguments to dd e.g.