delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/11/06/12:20:51

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
:mime-version:content-type; q=dns; s=default; b=L/b9STHGrlkwn4xS
f/y+iCP12qGoG0MszLQRa1cbJUWuyRzrjS2zLmLh7deP/oJuMiDUqONK7t499kVr
RAKt8Yb9DzVHDrSe6DwA8p4fxiddDHOTzYW1/rCGjOg3Mz232RtAmZwCe5FWehqx
9TQR687F55wlFlI7KOgjo0+kGKo=
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
:mime-version:content-type; s=default; bh=yayowHYpZ7265DZSALDKUJ
zXKWM=; b=XJKeeioGXP3qbHPU/yCcr8VTbMbJVMTAkiabfynL7ERifd3NUivoDo
ZoOgPmyAobVtmA2Ho0GXU4HadwEvjFsf0q1TfXSMWYDNXYrIyYSkXlybRRsfPVqA
Q0qIyWGzPl4BWTtsdiM6UqopGPIDAmBDurV3MB1heyW942XbXzJj0=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RDNS_NONE,SPF_SOFTFAIL,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Wed, 6 Nov 2013 21:18:46 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <16910539373.20131106211846@mtu-net.ru>
To: All <cygwin AT cygwin DOT com>
Subject: Small wrapper to start Cygwin scripts by unix name
MIME-Version: 1.0
X-IsSubscribed: yes

------------10ECD2531C63F104
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Greetings, All!

I was using a simple

[C:\]$ ftype unixshell.script
unixshell.script="C:\Programs\Cygwin\bin\env.exe" "%1" %*

association to run Cygwin scripts, until I've discovered, that, say, gawk is
unable to digest native path to script.

Had to thinker around it, but original idea to have native batch file was
unsuccessful. Probably because of local issues, but I wanted to run that AWK
script... So I came up with a Cygwin wrapper and expanded association:

[C:\]$ ftype unixshell.script
unixshell.script="C:\Programs\Cygwin\bin\env.exe" /bin/cygwrap.sh "%1" %*


-- 
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 06.11.2013, <20:54>

Sorry for my terrible english...
------------10ECD2531C63F104
Content-Type: application/octet-stream; name="cygwrap.sh"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="cygwrap.sh"

IyEgL2Jpbi9zaAppZiBbIC16ICIkMSIgXTsgdGhlbgogIGVjaG8gIk5vIGNv
bW1hbmQgZ2l2ZW4sIGJyZWFraW5nIG9mZi4iIDE+JjIKICBleGl0IDEKZmkK
CkNNRE5BTUU9IiQoIGN5Z3BhdGggLWF1ICIkMSIpIgpzaGlmdAoKZW52ICIk
Q01ETkFNRSIgJCoK


------------10ECD2531C63F104
Content-Type: text/plain; charset=us-ascii

--
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
------------10ECD2531C63F104--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019