"bash -c" inquery
Shankar Unni
shankar@cotagesoft.com
Mon May 5 17:42:00 GMT 2003
Elfyn McBratney wrote:
>>why this command did not work correctly ??
>>c:\cygwin\bin\bash --login -i -c "net use \\\\view\\MCDT1_ST72521"
> Should be '\\server\resource' when called from within Windows.
Actually, in this case, he needs to go the other way: one set of
back-slashes is eaten when the bash -c command is parsed above, and
another set of backslashes is eaten when bash actually executes the
command, so try:
bash --login -i -c "net use \\\\\\\\view\\\\MCDT1_ST72521"
(Seriously!)
--
Shankar.
--
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