delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <jt14eh$u3a$1@dough.gmane.org> |
References: | <34111361 DOT post AT talk DOT nabble DOT com> <jt14eh$u3a$1 AT dough DOT gmane DOT org> |
Date: | Wed, 4 Jul 2012 12:38:41 +0100 |
Message-ID: | <CAHWeT-bEd7jfMxiRbJ0x_W3kaS67xATUTCtnCfzudJcfF++3Sw@mail.gmail.com> |
Subject: | Re: Why won't my .sh file work with cygwin? |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
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 >> (terminal) > > 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. Andy -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |