| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Date: | Mon, 30 Oct 2006 13:47:51 -0800 |
| From: | Gary Johnson <garyjohn AT spk DOT agilent DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Problem passing Windows path names from batch file to bash script |
| Message-ID: | <20061030214750.GA29632@suncomp1.spk.agilent.com> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <20061028034348 DOT GA17030 AT suncomp1 DOT spk DOT agilent DOT com> <31DDB7BE4BF41D4888D41709C476B6570416928D AT NIHCESMLBX5 DOT nih DOT gov> <20061028214504 DOT GA26508 AT suncomp1 DOT spk DOT agilent DOT com> <ba40711f0610281911h3fd9c560m1b79b4aa1d3cdb8e AT mail DOT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <ba40711f0610281911h3fd9c560m1b79b4aa1d3cdb8e@mail.gmail.com> |
| User-Agent: | Mutt/1.5.12 (2006-07-14) |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 2006-10-28, Lev Bishop wrote:
> 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
Thank you very much. That was a great help.
Regards,
Gary
--
Gary Johnson | Agilent Technologies
garyjohn AT spk DOT agilent DOT com | Wireless Division
| Spokane, Washington, USA
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |