opensuse
[Arriba] [Todas las Listas]

Re: [opensuse] Tipo diferente de pelar guiones

To: opensuse@xxxxxxxxxxxx
Subject: Re: [opensuse] Tipo diferente de pelar guiones
From: jdd <jdd@xxxxxxxxx>
Date: Thu, 22 Sep 2011 14:02:18 +0200
Delivered-to: opensuse@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 22 Sep 2011 08:02:48 -0400
Envelope-to: traductor@xxxxxxxxxxx
In-reply-to: <1316690407.21158.45.camel@acme.pacific>
List-archive: <http://lists.opensuse.org/opensuse/>
List-help: <mailto:opensuse+help@opensuse.org>
List-owner: <mailto:opensuse+owner@opensuse.org>
List-post: <mailto:opensuse@opensuse.org>
List-subscribe: <mailto:opensuse+subscribe@opensuse.org>
List-unsubscribe: <mailto:opensuse+unsubscribe@opensuse.org>
Mailing-list: contact opensuse+help@xxxxxxxxxxxx; run by mlmmj
References: <4E7AED97.1000309@gmail.com> <1316679971.21158.35.camel@acme.pacific> <4E7AF480.2080607@dodin.org> <1316690407.21158.45.camel@acme.pacific>
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11
*Le 22/09/2011 13:20, Roger *Oberholtzer un *écrit :
En *Thu, 2011-09-22 en 10:40 +0200, *jdd escribió:

	*chmod +*x *filename.*sh
	./*filename.*sh

Por la manera, para un pelar guión, sencillamente uso "*sh ./*filename"

Naturalmente que trabajos. *OTOH, si los inicios de guión con, dice,

	#!Pitón

si un *filename.*sh Pitón de carreras del guión, es bastante mal nombrado :-)

*jdd


--
*http://www.dodin.net
*http://*pizzanetti.*fr
--
A *unsubscribe, *e-correo: *opensuse+unsubscribe@xxxxxxxxxxxx
Puesto que órdenes adicionales, *e-correo: *opensuse+help@xxxxxxxxxxxx


Le 22/09/2011 13:20, Roger Oberholtzer a écrit :
On Thu, 2011-09-22 at 10:40 +0200, jdd wrote:

	chmod +x filename.sh
	./filename.sh

by the way, for a shell script, simply use "sh ./filename"

Of course that works. OTOH, if the script starts with, say,

	#!python

if a filename.sh script runs python, it's pretty badly named :-)

jdd


--
http://www.dodin.net
http://pizzanetti.fr
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx


<Anterior por Tema] Tema Actual [Siguiente por Tema>