On 10/16/2014 10:44 AM, John Wiersba wrote:
I'm trying to create a windows shortcut which will start mintty indirectlyby 
running a (perl) script which will exec mintty.  I know I can start mintty.exe 
directly via the shortcut, but the purpose of my script is to wrap the 
invocation in the proper environment and arguments.

I'm encountering two problems using run.exe:

1) run.exe doesn't seem to be able to run a hashbang script.  My script starts 
with #!/usr/bin/perl and runs just fine from a cygwin bash command line, 
starting a new mintty terminal as expected.  But calling it from run.exe fails. 
 It flashes some kind of terminal window on the screen, which appears to have 
no content (but it is hard to tell, since it flashes so quickly) and then the 
terminal window immediately closes.  In this case, my shortcut target is: 
d:\cygwin\bin\run.exe /path/to/hashbang/script.

I think it may be designed to deal only with actual executables (.exe files).
The wording of the man page is ambiguous, but suggestive of this in that it
speaks of "Windows programs".

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.

Regards -- Eliot Moss

--
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 via email to