Re: Trying to replace a bashism in bourne sh

From: Dag-Erling_Smørgrav <des_at_FreeBSD.org>
Date: Tue, 07 Nov 2023 13:26:35 UTC
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'.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org