[Top][All Lists]

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

Re: bash man page needs more examples...(i.e. >0)

From: Roger
Subject: Re: bash man page needs more examples...(i.e. >0)
Date: Sun, 29 Jan 2012 09:30:41 -0900
User-agent: Mutt/1.5.21 (2010-09-15)

> On Sat, Jan 28, 2012 at 06:45:34PM -0800, Linda Walsh wrote:
>Andreas Schwab wrote:
>> Linda Walsh <address@hidden> writes:
>>> var=0a32; echo $var
>>> -bash: 0a32: value too great for base (error token is "0a32")
>> Which part of "Constants with a leading 0 are interpreted as octal
>> numbers" did you not understand?
>The part that said the ones that start with 0 and are followed by an 
>'x', indicating hex
>don't mean octal -- someone might thing that 0 followed by a base 
>indicator might
>be a valid construction, presuming that had any creativity or ability to 
>come up with

Although you have a point, once you find the definition of hex and octal 
numbers, you likely won't confuse this point.

If somebody doesn't understand a word, they usually define it first before 
assuming something as such.

Basically, hex uses numbers and a-f letters.  Octal uses only numbers.  (Took 
me awhile before I understood octal.)


reply via email to

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