X-Spam-Check-By: sourceware.org
Message-ID: <ba40711f0610281911h3fd9c560m1b79b4aa1d3cdb8e@mail.gmail.com>
Date: Sat, 28 Oct 2006 22:11:27 -0400
From: "Lev Bishop" <lev.bishop@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Problem passing Windows path names from batch file to bash script
In-Reply-To: <20061028214504.GA26508@suncomp1.spk.agilent.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <20061028034348.GA17030@suncomp1.spk.agilent.com> 	 <31DDB7BE4BF41D4888D41709C476B6570416928D@NIHCESMLBX5.nih.gov> 	 <20061028214504.GA26508@suncomp1.spk.agilent.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 10/28/06, Gary Johnson wrote:
> On 2006-10-28, Buchbinder, Barry (NIH/NIAID) [E] wrote:
> > From: Gary Johnson; Sent: Friday, October 27, 2006 11:44 PM
> > > I am trying to pass Windows path names from a Windows batch file
> > > to a Cygwin bash script.  I have found a solution using Windows
> > > environment variable substitution to replace \s with /s before
> > > passing the name to bash, but I cannot figure out how to pass
> > > the name without that replacement.  The problem is with names of
> > > the form
> > >
> > >     "\\host\user\file with spaces"

Note the difference between these two:

Exhibit A:
C:\>set CYGWIN=noglob
C:\>\cygwin\bin\echo "\\host\share\file with spaces"
\\host\share\file with spaces

Exhibit B:
C:\>set CYGWIN=glob
C:\>\cygwin\bin\echo "\\host\share\file with spaces"
\host\share\file with spaces

HTH,
Lev

--
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/

