This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]