This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Help, cant run scripts in cygwin!
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 14 Jan 2005 15:55:29 -0000
- Subject: RE: Help, cant run scripts in cygwin!
> -----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/