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] |
The first time you do that, windows will complain it doesn't know what to do with a sh file, and offer you the choice of looking up on the web or selecting from a list which program you want to open .sh files with; choose the select-from-a-list option, when the list appears click the browse button, find your way to cygwin\bin\bash.exe and select that. Make sure "Always use this program" is ticked, enter a nice descriptive name such as "Bash script" in the description box, OK it and away you go!
That won't run the script in the same environment that it would get when run from a Cygwin login shell, though, will it? I would think the program might have to be a .bat file that contains something like this (untested):
C:\cygwin\bin\bash.exe --login -c %1
http://sourceware.org/ml/cygwin/2006-03/msg00311.html http://sourceware.org/ml/cygwin-apps/2006-10/msg00029.html
Regards, Frank
-- 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] |