Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: "bash -c" inquery Date: Mon, 05 May 2003 10:15:56 -0700 Lines: 18 Message-ID: <3EB69C4C.2070004@cotagesoft.com> References: <000901c3131b$d5f2f4e0$193c82a4 AT tun DOT st DOT com> <00ab01c3131d$b55ebcd0$492c86d9 AT ellixia> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401 X-Accept-Language: en-us, en In-Reply-To: <00ab01c3131d$b55ebcd0$492c86d9@ellixia> 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/