delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/14/10:58:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Help, cant run scripts in cygwin!
Date: Fri, 14 Jan 2005 15:55:29 -0000
MIME-Version: 1.0
In-Reply-To: <loom.20050114T145752-660@post.gmane.org>
Message-ID: <NUTMEGDCOTSt39LktrL00001063@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 14 Jan 2005 15:55:29.0171 (UTC) FILETIME=[785A8630:01C4FA51]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Kristian Carlsson
> Sent: 14 January 2005 14:00

> Isnt it enough to do "chmod u+x filename" to make the file 
> executable in cygwin?

  Well, yes.  But if '.' isn't in your $PATH, then the shell won't find it if
you just try to invoke it by typing "filename" and pressing return.

  And of course if you don't use a shebang, it'll be invoked under sh rather
than under whatever shell you might have launched it from, which will be
confusing if you were trying to use shell builtins or whatever.....



    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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