This is the mail archive of the cygwin@cygwin.com 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: "bash -c" inquery


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/


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