[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: Linda Walsh
Subject: Re: bash man page needs more examples...(i.e. >0)
Date: Mon, 30 Jan 2012 11:32:04 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: Gecko/20100228 Lightning/0.9 Thunderbird/ Mnenhy/

DJ Mills wrote:

OK. �How about if that sentence began with `When specifying n, the
digits greater ...'?

declare -i foo; foo=20#a2; echo "$foo"

[base#]n, 'base' is a INTEGER 2-64, then '#', followed by the number.


Slightly more exact/pedantic, how about:

 Syntax for integer constants is "[BASE#]STRING", where BASE is in set {2..64},
'#' is the literal, 'hash' or 'crosshatch' (U+0023), and STRING represents a value in the BASE, using ordered characters: address@hidden, where
a = 11, b = 12, ... A = 37, B = 38, Z = 61, @ = 62, _ = 63.

reply via email to

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