Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Nov 2023 14:26:35 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        D'Arcy Cain <darcy@druid.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Trying to replace a bashism in bourne sh
Message-ID:  <86pm0l1ypg.fsf@ltc.des.no>
In-Reply-To: <8cdcb170-1c54-464b-aa89-c89ca98c86ca@druid.net> (D'Arcy Cain's message of "Mon, 6 Nov 2023 13:45:33 -0600")
References:  <8cdcb170-1c54-464b-aa89-c89ca98c86ca@druid.net>

next in thread | previous in thread | raw e-mail | index | archive | help
D'Arcy Cain <darcy@druid.net> writes:
> I need to do this;
>
>   ifconfig_eth3=3D"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
--=20
Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86pm0l1ypg.fsf>