[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash questions

>>"Lee" == Lee Bradshaw <lee@sectionIV.com> writes:

 Lee> On Wed, Aug 05, 1998 at 12:00:47AM -0700, Guy Maor wrote:
 >> cdulrich@ucdavis.edu (Chris Ulrich) writes:
 >> > echo $[3+5]
 >> This is the old, unsupported, way of doing an arithmetic expressions.
 >> This should be changed to `$((3+5))'.  File a bug.

 Lee> If you want to use sh instead of bash, then try:
 Lee>   echo `expr 3 + 5`

	Any sh that does not support $((3+5)) is broken, and should
 not be made /bin/sh on Debian systems. 

ISO/IEC 9945-2:1993(E)
IEE Std 1003.2-1992
Section 3.6.4 Arithmetic expansion, lines 491-509

	Requires that the $((expression)) be supported. If you know of
 any shell masquerading as a potential sh replacement that does not
 support this, we shall appreciate a bug report, and possibly a report
 to this list.

	POSIX compliance is a stated goal for us.

 Hey dol! merry dol! ring a dong dillo! Ring a dong! hop along! fal
 lal the willow! Tom Bom, jolly Tom, Tom Bombadillo! Tolkien
Manoj Srivastava  <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E

Reply to: