This is the mail archive of the
mailing list for the Cygwin project.
Re: Why won't my .sh file work with cygwin?
On 4 July 2012 11:04, Thorsten Kampe wrote:
> * Gundament (Tue, 3 Jul 2012 22:38:36 -0700 (PDT))
>> I am new to Cygwin but I understand it does it's best to simulate a
>> linux terminal.
> No. "Cygwin is: a collection of tools which provide a Linux look and
> feel environment for Windows." http://cygwin.com/
That doesn't exactly contradict what the OP was saying. Needlessly unwelcoming.
>> I want to make a little program and I have written out the entire code and
>> saved it as a ".sh" file.
>> I have paired my Windows computer to open .sh files with Cygwin's mintty.exe
> You are confusing a terminal (like Mintty) with a shell (like bash).
Maybe so, but invoking a shell script in that way does work, if it has
executable permission. That's because the exec() function that mintty
uses to invoke the program passed on its command line automatically
runs /bin/sh if the program isn't a binary. Same for other terminals.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple