[Top][All Lists]

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

Assignment to integer variable

From: Diego Augusto Molina
Subject: Assignment to integer variable
Date: Tue, 14 Sep 2010 10:42:16 -0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100831 Lightning/1.0b2pre Thunderbird/3.1.1

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: x86_64-pc-linux-gnu-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib
uname output: Linux diegom 2.6.34-gentoo-r1 #4 SMP Thu Jul 22 21:06:07
ART 2010 x86_64 Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz
GenuineIntel GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.0
Patch Level: 37
Release Status: release

        BASH complains when asigning some (didn't try all of them)
non-ASCII characters to a variable with the integer attribute. Tried
with vocal letters with an acute accent, grave accent, circumflex
accent, 'Ñ', 'ñ', 'ç', 'Ç', and some more I can't remember by now. Hoped
it would just do nothing, as happens when asigning anything that is not
a number to a variable of this kind.
  Thank you for BASH.

        declare -i variable


Diego Augusto Molina

reply via email to

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