Help, cant run scripts in cygwin!

Dave Korn dave.korn@artimi.com
Fri Jan 14 16:10:00 GMT 2005


> -----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/



More information about the Cygwin mailing list