Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Shankar Unni <shankar@cotagesoft.com>
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@tun.st.com> <00ab01c3131d$b55ebcd0$492c86d9@ellixia>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@main.gmane.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/

