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: Newbie Questions


On 2/5/2014 18:00, Andrey Repin wrote:

[C:\home\Daemon]$ bash -c ./foo.sh

That's not the same command I gave you. -c changes how bash.exe interprets the following parameter.

It matters, because when you right-click a *.sh file in Windows Explorer, say Open With, then tell Explorer to use bash.exe to open such files now and in the future, it isn't going to stick -c in the command for you.

If you did change the file association in the registry, adding -c, that still isn't going to help because Windows Explorer is going to pass the full Windows-style path to bash.exe in place of the %1. Plus you still have the PATH issues I brought up in my previous email.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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