> On Sat, Jan 28, 2012 at 06:45:34PM -0800, Linda Walsh wrote: >Andreas Schwab wrote: >> Linda Walsh <b...@tlinx.org> 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 >alternatives.
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.) -- Roger http://rogerx.freeshell.org/