Article View: es.comp.os.linux.programacion
Article #12860Re: ¿Bash y el ámbito de las variables?
From: J.A. Gutierrez
Date: Tue, 08 May 2001 15:59
Date: Tue, 08 May 2001 15:59
32 lines
1801 bytes
1801 bytes
David Cana <davidNO_SPAM@cherrytel.com> wrote: : Pues bien, no funciona. La variable LISTA_DIRS esta vac�a al final del : script. Parece como si nos hubi�ramos salido del �mbito de la variable. �sto : s� funciona: pos mu sencillo: los parentesis implican un subshell Pista: 'while' no necesita parentesis while read LINEA do lo que sea done < foobar o proceso tal | while read LINEA do lo que sea done En algunos casos, puedes reemplazar los parentesis por llaves, para evitar el subshell -- PGP and other useless info at \ http://www.cps.unizar.es/~spd/ \ finger://daphne.cps.unizar.es/spd \ Timeo Danaos et dona ferentes ftp://ivo.cps.unizar.es/pub/ \ (Virgilio)
Technical Details
Message-ID:
<9d9552$k25$1@news.unizar.es>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.rediris.es!news.unizar.es!not-for-mailReferences:
<9d91qq$8al$1@diana.bcn.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,172d2a91d5047ff8
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-05-08 08:39:35 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: ¿Bash y el ámbito de las variables?
Date: 8 May 2001 15:59:30 GMT
Organization: Rank
Lines: 32
Message-ID: <9d9552$k25$1@news.unizar.es>
References: <9d91qq$8al$1@diana.bcn.ttd.net>
NNTP-Posting-Host: daphne.cps.unizar.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.unizar.es 989337570 20549 155.210.152.20 (8 May 2001 15:59:30 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 8 May 2001 15:59:30 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))