From nobody Tue Nov 07 13:26:35 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 4SPpsB4qrLz504BS for ; Tue, 7 Nov 2023 13:26:38 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SPpsB4P4tz4Q6f; Tue, 7 Nov 2023 13:26:38 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699363598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/QiEVTUmOh9BXBnt9A9LFYq4G90Zt3l4QoYlkW78w8Q=; b=Fen5s0dcRTN25WC4MRAmiyN4ZXAXFbfMFFVA7PoQIItcG/Qdq/47AW1wHY/FHt+cf+JUTN 78Y2APosLhF6qRoyYlxDlN/XMzPywbUev8i6efT4GRLthBh60Hrarv7nl7Y0sEUnE+sMTy IWiSKCyIenYuFb9GZNYwfS+AqeZHGPJPS1D3dUzbK/LUvxk2lbsgtbOpT/1CGo1kAk8xKk MJnt+5n9cpRjqntOBgsSiR7QCVamuegucc6qk7OihP2p2TTUjxGL/H1fYtQap6hSNMtijP yILOAHepqQzzplUcegK9DZwsKdS1y063Hq9EtjuhI+h1wpwFY8OphvI9lyPC2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699363598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/QiEVTUmOh9BXBnt9A9LFYq4G90Zt3l4QoYlkW78w8Q=; b=DZr15BYaRyaIqmGtfEwvZ9Qha+6PdMHZ+XHaEuv2IdKuv+o5pOW3rJl5PtFDldU1/IWKtr R2isqF5daJM4eNqRWBNMq2xhicSkuvCrmxhiGgXpmNloa809Cf7oEPZe7nfcTSaFgPBuAw mdrgKYugrWth1WmkSWOLjI61exFau3UbezLkeGFdIEVKx1y0g0C45LClyKsyuc+95R3LqS X0tlDtun7QMU1hCcdY18HnQdabCIOJFYMSu/wBHWyhpHZ8SsDkF/hKCD+RH7oqv1H2DBkR Plp6V1dkCT3FJSLFYXP/WBkrX4jyf9DQq6pBI7HFTmexH5Q3k7+ER/6gwKvSWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699363598; a=rsa-sha256; cv=none; b=ig7sqZO3unaqGdxlGGkK/OUDBgeb6cEB0z4jDf+PXI0zbQstwSxSC8drnkYK7mcyMbviSm SoutVbplx+rij1+dlna7b4VZ0YQ8Ur3VUzxpUFblWP6H+1kYu3HaUoNF0PNJeAmUVxnD/6 UjzQrjTs3NZK75K1aPyQpjQsSnwuS+iGsmTZ4ppcYikbnXt1A9E3bLo31U66FZDisNxTJi vd782WhrxPh7skgz/eyoodtiTziAI0gjlyy2gKUparNMABYEVqNPMWHAkniRG7+XYDSP6K rhk/pw+0BeRyCDnrH1YeI5alfdIgIlRxSdN6lHTbnmtF//JX6komVQZ+4hiKZQ== Received: from ltc.des.no (2a02-8428-0993-f001-36e8-94ff-feca-9834.rev.sfr.net [IPv6:2a02:8428:993:f001:36e8:94ff:feca:9834]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SPpsB2k8czCc2; Tue, 7 Nov 2023 13:26:38 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.no (Postfix, from userid 1001) id 81626EFBDC; Tue, 7 Nov 2023 14:26:35 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: D'Arcy Cain Cc: freebsd-questions@freebsd.org Subject: Re: Trying to replace a bashism in bourne sh 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> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 07 Nov 2023 14:26:35 +0100 Message-ID: <86pm0l1ypg.fsf@ltc.des.no> 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable D'Arcy Cain 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