🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #6389

Re: Comportament extrany de bash

#6389
From: Fernando Arbeiza
Date: Sat, 28 Jun 2003 12:06
21 lines
1625 bytes
Por cierto, no te he dicho c�mo puedes solucionarlo:

> On Sat, 28 Jun 2003 13:40:48 +0200, Pere Pujal i Carabantes <ppujal A R
> R O B A@airtel.net> wrote:
>> #!/bin/bash
>> minuts=08
>> ((minuts+=15)) ->((: 08: value too great for base (error token is
>> echo $minuts  --> 8                                          "08")  

As� tendr�a que funcionar:

#!/bin/bash
minuts=08
minuts="10#${minuts}"
((minuts+=15))
echo $minuts

Un saludo.
-- 
Fernando Arbeiza        <URL: mailto:arbeizaf@ono.com>
Crea tu propio Linux:   <URL: http://www.escomposlinux.org/lfs-es>
Technical Details
Message-ID: <slrnbfr15g.3cu.arbeizaf@jupiter.olimpo.homelinux.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!fu-berlin.de!uni-berlin.de!81-203-248-186.user.ono.COM!not-for-mail
References: <slrnbfqvlu.79j.ppujalARROBA@hola.fou.net> <slrnbfr0p0.3b0.arbeizaf@jupiter.olimpo.homelinux.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,aa6e39e60cfc96cf
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-06-28 05:09:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!fu-berlin.de!uni-berlin.de!81-203-248-186.user.ono.COM!not-for-mail
From: Fernando Arbeiza <arbeizaf@ono.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Comportament extrany de bash
Date: Sat, 28 Jun 2003 14:06:08 +0200
Lines: 21
Message-ID: <slrnbfr15g.3cu.arbeizaf@jupiter.olimpo.homelinux.org>
References: <slrnbfqvlu.79j.ppujalARROBA@hola.fou.net> <slrnbfr0p0.3b0.arbeizaf@jupiter.olimpo.homelinux.org>
NNTP-Posting-Host: 81-203-248-186.user.ono.com (81.203.248.186)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1056801981 31395975 81.203.248.186 (16 [148301])
X-Orig-Path: jupiter.olimpo.homelinux.org!news
User-Agent: slrn/0.9.7.4 (Linux)