🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SCRIPT ELEMENTAL

#15763
From: fserrano
Date: Fri, 02 Jun 2000 00:00
19 lines
1316 bytes
>     fserrano> no me aclaro. Estoy intentando el equivalente en MSDOS a
>     fserrano> choice ......  if errorlevel 1 goto .....  if errollevel
>     fserrano> 0 goto .....

Como las respuestas a este tema no me han ayudado mucho -¡MUCHAS
GRACIAS DE TODOS MODOS!- (y eso que una sintaxis  "case ..." parecida a
la del bash, ya la usaba hace 10 años en nacros del WordPerfect), he
probado otras opciones, y me respondo a mí mismo:

       dialog --yesno "prueba" 0 0 && echo SI || echo NO  

Será una chapuza, pero funciona.

Saludos

P.D.: un ejemplo vale más que mil "man-uales" ;-)

-----------------------------------------
Francisco J. Serrano
Technical Details
Message-ID: <Pine.LNX.3.96.1000602114021.1154K-100000@tajo.unex.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Pine.LNX.3.96.1000530093320.6395F-100000@tajo.unex.es> <8766rt7757.fsf@chaos.rpm.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,917a58ffc70ec4ec
X-Google-Attributes: gidf86c8,public
From: "fserrano@unex.es" <fserrano@unex.es>
Subject: Re: SCRIPT ELEMENTAL
Date: 2000/06/02
Message-ID: <Pine.LNX.3.96.1000602114021.1154K-100000@tajo.unex.es>
X-Deja-AN: 630444099
Content-Transfer-Encoding: QUOTED-PRINTABLE
References: <Pine.LNX.3.96.1000530093320.6395F-100000@tajo.unex.es> <8766rt7757.fsf@chaos.rpm.org>
Organization: Universidad de Extremadura
X-Server-Date: 2 Jun 2000 10:46:10 GMT
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Mime-Version: 1.0
Newsgroups: es.comp.os.linux.programacion