Date: Tue, 11 Jun 2002 17:40:58 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Alfred Perlstein <bright@mu.org> Cc: Giorgos Keramidas <keramida@FreeBSD.org>, Doug Barton <dougb@FreeBSD.org>, <committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/usr.sbin/mergemaster mergemaster.sh Message-ID: <20020611172522.N4349-100000@gamplex.bde.org> In-Reply-To: <20020610223616.GR88163@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020611172522.N4349-100000>
