bug-bash
[Top][All Lists]
Advanced

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

Re: The removal fails if the first number é preceded from one zero not m


From: Eric Blake
Subject: Re: The removal fails if the first number é preceded from one zero not meaningful one.
Date: Thu, 07 Sep 2006 06:13:23 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Rolando Temperini on 9/1/2006 5:23 AM:
> Bash Version: 2.05a

Consider upgrading.  Bash is at 3.1, and a beta for 3.2 is already underway.

> pippo=$[013-1]
> echo $pippo
> 
> Results is : 
> 10

You are using octal numbers, then getting a decimal answer.

> 
> Case 2)
> 
> pippo=$[09-1]

Again, you used octal numbers, except that 8 and 9 are not valid octal
digits.  Don't use the leading 0 if you don't want octal numbers.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFAAzj84KuGfSFAYARAkG5AKC+dwlTZAe3XHzp+DR50DrFzV/jTwCgv9sp
oR23xi/LNtu2YLUFnwkAeyc=
=2rjA
-----END PGP SIGNATURE-----




reply via email to

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