[LUGOS-PROG] BASH let

Primoz Peterlin primoz.peterlin at biofiz.mf.uni-lj.si
Wed Jun 12 16:59:55 CEST 2002


On Wed, 12 Jun 2002, anze wrote:

> Zanima me, zakaj je vrednost spremenljivke A po tem izrazu:
> let "A = 013"
> enaka 11. Ce uporabim:
> let "A = 13"
> stvar deluje po pricakovanjih (vrednost A je 13).
> Je to bug ali delam nekaj narobe?

Drugo. Glej "man bash":

 ...
       Constants  with  a leading 0 are interpreted as octal num­
       bers.  A leading 0x or 0X denotes hexadecimal.  Otherwise,
 ...

Lep pozdrav, Primož

--
Primož Peterlin,   Inštitut za biofiziko, Med. fakulteta, Univerza v Ljubljani
Lipičeva 2, SI-1000 Ljubljana, Slovenija.  primoz.peterlin at biofiz.mf.uni-lj.si
Tel: +386-1-5437632, fax: +386-1-4315127, http://sizif.mf.uni-lj.si/~peterlin/
F8021D69 OpenPGP fingerprint: CB 6F F1 EE D9 67 E0 2F  0B 59 AF 0D 79 56 19 0F




More information about the lugos-prog mailing list