Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Nov 2023 10:18:06 -0600
From:      D'Arcy Cain <darcy@druid.net>
To:        =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Trying to replace a bashism in bourne sh
Message-ID:  <cf21cc12-22c5-48b7-9e2d-1b34f8e35883@druid.net>
In-Reply-To: <86pm0l1ypg.fsf@ltc.des.no>
References:  <8cdcb170-1c54-464b-aa89-c89ca98c86ca@druid.net> <86pm0l1ypg.fsf@ltc.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cf21cc12-22c5-48b7-9e2d-1b34f8e35883>