Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a generalized program to be run both in windows and linux.

When I run the program in the windows console it halts at a point where the .sh file is to be executed with a window popping asking for "which program to use" and requires manual intervention to cancel.

My question is: How do I change the setting available in the console that will let not the execution to halt when an unknown file extension is encountered?

share|improve this question
    
In Windows, are you using Cygwin? –  VenkatH Oct 30 '12 at 6:32
    
If it is unknown how can Windows execute it without halting and complaining? As mentioned in the answer below, associate the extension with the correct program, or modify the script and add a call to the program in the relevant line. –  Karan Oct 30 '12 at 19:25
add comment

1 Answer

In windows you must associate .sh files with msys bash, or run them via sh.exe, but not directly.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.