From nobody Tue Nov 07 16:18:06 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SPtg73tPlz50dBh for ; Tue, 7 Nov 2023 16:18:11 +0000 (UTC) (envelope-from darcy@druid.net) Received: from mail.vex.net (mail.vex.net [98.158.132.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SPtg71jkqz3Sc0; Tue, 7 Nov 2023 16:18:11 +0000 (UTC) (envelope-from darcy@druid.net) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.215.109] (unknown [98.186.198.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: darcy) by mail.vex.net (Postfix) with ESMTPSA id 2B2963E8A0; Tue, 7 Nov 2023 11:18:08 -0500 (EST) Message-ID: Date: Tue, 7 Nov 2023 10:18:06 -0600 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Trying to replace a bashism in bourne sh Content-Language: en-US To: =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Cc: freebsd-questions@freebsd.org References: <8cdcb170-1c54-464b-aa89-c89ca98c86ca@druid.net> <86pm0l1ypg.fsf@ltc.des.no> From: D'Arcy Cain In-Reply-To: <86pm0l1ypg.fsf@ltc.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19842, ipnet:98.158.132.0/24, country:CA] X-Rspamd-Queue-Id: 4SPtg71jkqz3Sc0 On 2023-11-07 07:26, Dag-Erling Smørgrav wrote: > D'Arcy Cain 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 | 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