bug-bash
[Top][All Lists]
Advanced

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

Re: manpage error-Arithmetic Evaluation of numbers with explicit base


From: Thomas Bartosik
Subject: Re: manpage error-Arithmetic Evaluation of numbers with explicit base
Date: Mon, 29 Mar 2010 14:22:35 +0200

Well OK, I understand. Still I think there should be a difference in the man 
page when it comes to brackets. When talking about arrays, the brackets are NOT 
an option but mandatory.
(and it might be me being uneducated, but how to you print out the decimal 
equivalent of binary 11 without using brackets? I can only produce the correct 
value "3" by
echo $[2#11]
The "optional" refers to being able to not use it when operating on a normal 
decimal number as I understand this now. Then where can I find that I have to 
use brackets like I use them -- which only is a side effect of the brackets I 
have seen in the man page and seems unrelated on the whole!)

On 03/2310 03:05 AM, chet.ramey@case.edu wrote:

> On 3/22/10 9:13 AM, tbartdev@gmx-topmail.de wrote:
> 
> > Bash Version: 4.0
> > Patch Level: 35
> > Release Status: release
> > 
> > Description:
> >     The man page seems to be wrong regarding the handling of numbers
> with different bases. It states one has to use [base#]n although it seems to
> be [base#n] that needs to be used...
> 
> The meta-notation [x] means that x is optional.  This usage is fairly
> common, especially in Unix man pages.
> 
> Chet
> -- 
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    chet@case.edu   
> http://cnswww.cns.cwru.edu/~chet/

-- 
GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern
E-Mail, SMS & mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail




reply via email to

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