From owner-cvs-all Tue Jun 11 0:37:11 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 9C68437B412; Tue, 11 Jun 2002 00:36:50 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id RAA31531; Tue, 11 Jun 2002 17:36:39 +1000 Date: Tue, 11 Jun 2002 17:40:58 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Alfred Perlstein Cc: Giorgos Keramidas , Doug Barton , , Subject: Re: cvs commit: src/usr.sbin/mergemaster mergemaster.sh In-Reply-To: <20020610223616.GR88163@elvis.mu.org> Message-ID: <20020611172522.N4349-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 10 Jun 2002, Alfred Perlstein wrote: > GRR!!! I'm pissed that sh(1) doesn't mention that one can do > binary arithmatic within $(()), I spent an hour looking for > some utility that could... It mentions everything except the details: %%% Arithmetic Expansion Arithmetic expansion provides a mechanism for evaluating an arithmetic expression and substituting its value. The format for arithmetic expan- sion is as follows: $((expression)) [... not much more detail] %%% > Well, nice usage. :) > > Any chance someone will document exactly what one can do with > our sh(1)'s $(()) construct? Or did I miss it? It would be surprising if it didn't support most C operators. The bash man page has details. ISTR learning this for use in MAKEDEV. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message