🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Saltos en bash

#16273
From: batsman
Date: Tue, 02 May 2000 00:00
53 lines
2632 bytes
-----BEGIN PGP SIGNED MESSAGE-----


  >> El Tue, 02 May 2000 14:19:48 GMT, algo o alguien alter� 
  >> el estado del teclado de Esteban
  >> y al poco rato lleg� a es.comp.os.linux.programacion lo siguiente:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Ahora voy a decir una chorrada, pero como se hacen saltos condicionales en
>bash, una especie de "goto".
		      ^^^^^^
	Te podr�an llevar a la hoguera por esto.

La �nica vez que he visto un goto en un programa en C fue en el c�digo de
megahal, un simulador de conversaci�n.

Eso s�, s� que a veces es necesario por necesidades de velocidad, etc... pero
s�lo se justifica si el programa es por ejemplo el n�cleo. Si no, no tiene
excusa y merece la reprobaci�n �nanime.

>Para hacer esto, por ejemplo.
>
>si condicion 1 = a
>salto a :w
>
>:w echo "Okay"

Hazlo a base de if y funciones, queda m�s guapo :-)

- -- 
              _           _                             
             | |__   __ _| |_ ___ _ __ ___   __ _ _ __  
             | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
             | |_) | (_| | |_\__ \ | | | | | (_| | | | |
             |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|

             Real email: batsman dot geo at yahoo dot com

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Public key via email: send mail with Subject: [PGPKEY]

iQEVAwUBOQ86Rb0Y27yr0iefAQHO4Qf/SIBscrZdijXH+0cu7TyVjTuThKACDUFh
4T5FzYdmCwb1VFeX4+hAsldLaiGt9AGek3bEV10ZHpxlU+G1NtT+TwgYb/devV6J
+yJYy/edWt3NVAHzYf5Z9SLNOrw3Gum8tKbxbhS5DF6Amxy/AwaCQUiLs+gXrfA/
QOhXEahK3or6UKOzpgdwk4t9pZ/ALldVR0i0MYNMLbb3i0G9znPc52B0HUVgeK0H
Q0XLRXNpouQa7UK0ezPSba8n0/GJLT5MvS5HPE2929lcxbngWnpc1jNRYCSUxOEg
ChLMyjBIldzxYmiYNUt7QmBHtTL2dbbM8MdajnApSAUIvOEG0Wyb3g==
=WgI5
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <aodne8.je1.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8gtnu0.pc.scandisk@localhost.localdomain>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,e073e16083571582
X-Google-Attributes: gidf86c8,public
From: batsman@simpsons.for.ever (batsman)
Subject: Re: Saltos en bash
Date: 2000/05/02
Message-ID: <aodne8.je1.ln@simpsons4ever>
X-Deja-AN: 618365399
Content-Transfer-Encoding: 8bit
References: <slrn8gtnu0.pc.scandisk@localhost.localdomain>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 957292197 62.36.16.153 (Tue, 02 May 2000 20:29:57 MET DST)
Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/
Mime-Version: 1.0
User-Agent: slrn/0.9.5.3 (UNIX)
Reply-To: see_signature-mira_firma
NNTP-Posting-Date: Tue, 02 May 2000 20:29:57 MET DST
Newsgroups: es.comp.os.linux.programacion