Newbie Questions

Warren Young warren@etr-usa.com
Thu Feb 6 01:15:00 GMT 2014


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



More information about the Cygwin mailing list