[TriLUG] BASH oddity

G.Wolfe Woodbury ggw at wolves.durham.nc.us
Tue Feb 21 18:17:47 EST 2006


On Tue, Feb 21, 2006 at 06:02:10PM -0500, Paul G. Szabady wrote:
> That's what I thought, but other non-octal combinations work.
> 
> IE
> 
> [paul at at paul]$ declare -i dirx=88 ; echo $dirx
> 88
> [paul at at paul]$

The leading '0' digit trigger the octal interpretation.  There are
special cases in the code for 09 but 08 seems to have escaped someone's
notice.  The library spec says that 08 should be correctly interpreted.

might be worth filing a bug with your distributions bug site.


-- 
G.Wolfe Woodbury     `- -'
RHCT                   U
The Line Eater is a boojum!



More information about the TriLUG mailing list