bug-bash
[Top][All Lists]
Advanced

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

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


From: Linda Walsh
Subject: Re: bash man page needs more examples...(i.e. >0)
Date: Sat, 28 Jan 2012 18:45:34 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666

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
alternatives.


var=a#32; echo $var
-bash: a#32: syntax error: invalid arithmetic operator (error token is
"#32")

Which part of "base is a decimal number between 2 and 64" did you not
understand?

The part that says:
     digits greater than 9  are  represented
by the lowercase letters, the uppercase letters, @, and _, in that order. ---- Again, What part of that do you not get? Obviously, you are saying that you either are just as confused as I am or you haven't read the documentation (or at least not in the same way I read
it...)...

It is notable, that while you are able to point out things that I already knew didn't work, you didn't point out what DID work.

Thanks for your backhanded answer to the question...I now understand what was meant were, but the man page is far from clear, IMO, there are obviously (see above) alternative interpretations that are incorrect. ie. it means decimal numbers before the # sign, and letters after it.
I love you too dear!

;-)





reply via email to

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