Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: RE: Help, cant run scripts in cygwin! Date: Fri, 14 Jan 2005 15:55:29 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: 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/