bug-bash
[Top][All Lists]
Advanced

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

Re: doing simple math in bash :: prb with leading zero


From: Chris F.A. Johnson
Subject: Re: doing simple math in bash :: prb with leading zero
Date: Tue, 1 Sep 2009 17:51:13 -0400 (EDT)
User-agent: Alpine 2.00 (LMD 1167 2008-08-23)

On Tue, 1 Sep 2009, ken wrote:

> Doing very simple math in bash fails if a number begins with a zero (0).

   Numbers beginning with 0 are base 8 (octal). 08 and 09 are not
   valid octal numbers.

-- 
   Chris F.A. Johnson, webmaster         <http://woodbine-gerrard.com>
   ===================================================================
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]