Re: Trying to replace a bashism in bourne sh

From: D'Arcy Cain <darcy_at_druid.net>
Date: Tue, 07 Nov 2023 16:18:06 UTC
On 2023-11-07 07:26, Dag-Erling Smørgrav wrote:
> D'Arcy Cain <darcy@druid.net> writes:
>> I need to do this;
>>
>>    ifconfig_eth3="inet $((16#c0a8c0${me} + 100))/24"
>>
>> Problem is that I need to do this at boot time but then it runs as
>> bourne sh.  Does anyone have an equivalent for sh?
> 
> Just replace '16#' with '0x'.

BINGO!  Thanks so much.

-- 
D'Arcy J.M. Cain <darcy@druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 788 2246     (DoD#0082)    (eNTP)   |  what's for dinner.
IM: darcy@Vex.Net, VoIP: sip:darcy@druid.net