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

2010-03-29 Thread Marc Herbert
Le 29/03/2010 14:50, Thomas Bartosik a écrit : > Please don't get me wrong. I have no problem in understanding the > man page this way, but I do think it is inconsistent. It's a pity that square brackets are used both in the language itself and in its syntactic definitions but this is bound to h

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

2010-03-29 Thread Thomas Bartosik
Don't get me wrong, I am a full time bash script programmer and I do know how man pages (and their syntax) look like. I use this syntax myself in every usage() I write... Still I think it is misleading. I simply cannot see how a newb can tell the difference between a bracket that's part of the

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

2010-03-29 Thread Greg Wooledge
On Mon, Mar 29, 2010 at 02:22:35PM +0200, Thomas Bartosik wrote: > 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. That's correct. Referencing a specific eleme

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

2010-03-29 Thread Thomas Bartosik
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 b

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

2010-03-22 Thread Chet Ramey
On 3/22/10 9:13 AM, tbart...@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]

manpage error-Arithmetic Evaluation of numbers with explicit base

2010-03-22 Thread tbartdev
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loc