delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/17/09:14:54

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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=aHaD1v0pRoU2GGgn
J6N9+42dZgyIi8VBR6Vx+J/pFyF2Qr5AnU7yniFSn4w87tqpsLgVEYH6xSjdLAdR
gJKr2f3+KfrLIOn21kgZhTOoqiXAjM1pbvl+cVZJ+gUaO8A8bOuBh9BWbJCHmsP3
cU47ifqpV59FrVtFuh6sijibvyw=
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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=x+DMErNWpQjXcJzinrQ/LB
l8G8s=; b=tW9t1gmxNoYdB8f9DiDyeZH9e4S5zdBiVRCabGCUStzos1Fze/OPVS
Kge60C8s5ahNX5bkB0FhhYn38vpESLbkjp9iYUSn8O0RW5sWzVUnM+cztjo/mdhX
5oD0D/uTJrSZQYC9QImYf3788IPKs+K0YQ23vOC8tFHMiFkVcwgbg=
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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Message-ID: <54411638.2000104@cs.umass.edu>
Date: Fri, 17 Oct 2014 09:14:32 -0400
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: John Wiersba <jrw32982 AT yahoo DOT com>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Starting mintty via run.exe
References: <1413488630 DOT 82429 DOT YahooMailNeo AT web162806 DOT mail DOT bf1 DOT yahoo DOT com> <544055FF DOT 2030604 AT cs DOT umass DOT edu> <1413517183 DOT 86611 DOT YahooMailNeo AT web162801 DOT mail DOT bf1 DOT yahoo DOT com> <1413517863 DOT 36122 DOT YahooMailNeo AT web162806 DOT mail DOT bf1 DOT yahoo DOT com>
In-Reply-To: <1413517863.36122.YahooMailNeo@web162806.mail.bf1.yahoo.com>
X-IsSubscribed: yes

On 10/16/2014 11:51 PM, John Wiersba wrote:

>> So maybe you want: run /bin/bash -c /path/to/hashbang/script
>>
>> This worked for me with a trival mintty-starting hash-bang bash script.

> I found your reply on the mailing list archives and quoted it above.  Yes,
> the same approach worked for me (in my original question I used perl rather
> than bash -c, since my script was written in perl).  That's mainly an
> annoyance that I have to specify the interpreter directly, rather than use
> the shebang line.  But I'm trying to get confirmation that it's not a "bug"
> but rather the way run.exe was designed.

I guess the author will have to confirm, but #! behavior is something built in
to the system calls in Unix, and is likely provided in a little bit different
manner under cygwin.  I am not sure what run.exe would have to do to make it
happen -- maybe add its own functionality to look for and parse a #! line.

> However, do you have any ideas about the flashing window which appears and
> then immediately disappears before the mintty terminal starts?  That's a
> show-stopper.  I thought that was what run.exe was supposed to prevent by
> making that console window hidden?  Do you get the same flashing console
> window with your trivial mintty-starting script?

Sorry, no -- I think I have seen that myself some in the past.  The
author/maintainer of run.exe will probably have to answer these.

By the way, you could create a copy of run.exe called runperl.exe (or maybe
just a link with that name) and it will run perl, as documented in the man
page for run.

Regards -- Eliot

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

- Raw text -


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