public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: John Wiersba <jrw32982@yahoo.com>,
	 "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: Starting mintty via run.exe
Date: Fri, 17 Oct 2014 13:14:00 -0000	[thread overview]
Message-ID: <54411638.2000104@cs.umass.edu> (raw)
In-Reply-To: <1413517863.36122.YahooMailNeo@web162806.mail.bf1.yahoo.com>

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

  reply	other threads:[~2014-10-17 13:14 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-16 19:43 John Wiersba
2014-10-16 23:34 ` Eliot Moss
2014-10-17  3:39   ` John Wiersba
2014-10-17  3:51     ` John Wiersba
2014-10-17 13:14       ` Eliot Moss [this message]
2014-10-17 21:52         ` cygcheck -s segfaults in cygwin64 on Win7Pro-64 John Wiersba
2014-10-18  3:59           ` Marco Atzeri
2014-10-20 22:39             ` John Wiersba
2014-10-21  8:03               ` Andrew Schulman
2014-10-21 11:03                 ` Corinna Vinschen
2014-10-21 15:31                   ` John Wiersba
2014-10-21 16:54         ` run.exe flashes non-hidden console window " John Wiersba
2014-10-22 13:50           ` Andrey Repin
2014-10-22 20:37             ` John Wiersba
2014-10-23  0:20               ` Doug Henderson
2014-10-23  1:35                 ` Andrey Repin
2014-10-23  8:42                   ` Andrew Schulman
     [not found]                   ` <1414037878.2285.YahooMailNeo@web162805.mail.bf1.yahoo.com>
2014-10-23 12:24                     ` John Wiersba
2014-10-23 17:56                       ` Achim Gratz
2014-10-23 18:47                         ` John Wiersba
2014-10-23 18:34                       ` Doug Henderson
2014-10-23 19:15                         ` John Wiersba
2014-10-23 19:40           ` Doug Henderson
2014-10-23 20:26             ` John Wiersba
2014-10-23 20:52               ` Achim Gratz
2014-10-23 21:25                 ` John Wiersba
  -- strict thread matches above, loose matches on Subject: below --
2014-10-16 14:44 Starting mintty via run.exe John Wiersba
2014-10-16 15:05 ` Eliot Moss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54411638.2000104@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=cygwin@cygwin.com \
    --cc=jrw32982@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).