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: Mon, 30 Jan 2012 11:32:04 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666



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"
202

[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: 0-9a-zA-Z@_, 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]