delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; q=dns; s=default; b=n0f+UZuBvMKPCECk | |
SLSmCMpEql40Px2oyOo1wxWMJNADgPgLtGOHJQSP2Lq933Sm1V1y6SUUNHXXzLjq | |
IOhUIH1JzIrlZsUHZeVhuETLCM3b6sj4ZsUoK4yoENi67nbIfY88ZTG+jOLtPthX | |
cUusnDf+0H3ijYrd+RXgtYJ7vmo= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:reply-to:message-id:to:subject | |
:in-reply-to:references:mime-version:content-type | |
:content-transfer-encoding; s=default; bh=x9oARAYtMIqEskBUAXxDxM | |
UtcY8=; b=fUamuzzA9aL7227kj0E7jYkU+FhKmduLwLUnEUtpPVDV11BCBzZ0g8 | |
hK73nCgxKZJ7/ZEpn9tA0uhKmtJd4NNNZ5XOGoyP5mGZ4nlYN865J71hc2OnbH4H | |
LvLZwF89Bfgndq7qehJDvu3NM/B7XQRh/8nE5oAOeewaWy4AA4cII= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 |
X-HELO: | smtpback.ht-systems.ru |
Date: | Thu, 6 Feb 2014 02:16:36 +0400 |
From: | Andrey Repin <anrdaemon AT yandex DOT ru> |
Reply-To: | Andrey Repin <cygwin AT cygwin DOT com> |
Message-ID: | <5210063097.20140206021636@mtu-net.ru> |
To: | Mike Rushton <mrushton AT ptd DOT net>, cygwin AT cygwin DOT com |
Subject: | Re: Newbie Questions |
In-Reply-To: | <52F2B0BC.70806@ptd.net> |
References: | <1898639722 DOT 6893470 DOT 1391541591920 DOT JavaMail DOT root AT ptd DOT net> <52F153AE DOT 5080704 AT gmail DOT com> <52F28215 DOT 5030801 AT ptd DOT net> <52F28330 DOT 6060101 AT cygwin DOT com> <52F2AA5D DOT 4000000 AT etr-usa DOT com> <52F2B0BC DOT 70806 AT ptd DOT net> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Greetings, Mike Rushton! > Right ... the extension is a windows thing. Not really. It's a human thing, that let you tell the intended meaning of the file at a glance. > Most of the bourne shell scripts i have come across have no extension. > Some have the Shebang line ... while others don't have it. Ones that not have it are scripts not intended for direct invocation (like these normally residing in /etc/default/*) > I am still in the planing stages ... I am not sure if I am going to use > an extension or not. > It might be a good idea to use .sh and then you would know that it is a > script. I'm using this little wrapper to start scripts by shebang line. -->8-------->8-------->8-------->8-------->8-------->8-------->8------ C:\Programs\CygWin\bin\cygwrap.sh #! /bin/sh if [ -z "$1" ]; then echo "No command given, breaking off." 1>&2 exit 1 fi CMDNAME="$( cygpath -au "$1")" shift env "$CMDNAME" $* -->8-------->8-------->8-------->8-------->8-------->8-------->8------ along with association $ assoc .pl .pl=unixshell.script $ assoc .sh .sh=unixshell.script (etc.) $ ftype unixshell.script unixshell.script="C:\Programs\Cygwin\bin\env.exe" /bin/cygwrap.sh "%1" %* -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 06.02.2014, <02:08> Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |