| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| X-WM-Posted-At: | avacado.atomice.net; Mon, 15 Jul 02 19:23:04 +0100 |
| Message-ID: | <010d01c22c2c$a8dc2ca0$0100a8c0@advent02> |
| From: | "Chris January" <chris AT atomice DOT net> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <Pine DOT LNX DOT 3 DOT 96 DOT 1020715095516 DOT 6949A-100000 AT rivendell DOT fangorn DOT ca> <20020715155555 DOT GC26820 AT redhat DOT com> |
| Subject: | Re: cygwin1.dll mangling command line args |
| Date: | Mon, 15 Jul 2002 19:23:03 +0100 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
----- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Monday, July 15, 2002 4:55 PM
Subject: Re: cygwin1.dll mangling command line args
> On Mon, Jul 15, 2002 at 10:08:35AM -0400, Mark Blackburn wrote:
> >Observe the following testcases
> >
> >test.c:
> >int main(int argc, char** argv)
> >{
> > int i;
> > for (i=0; i<argc; i++)
> > printf("%s\n",argv[i]);
> >}
> >
> >D:\home\windows\desktop>gcc test.c -o test -mno-cygwin
> >
> >D:\home\windows\desktop>test \\mark\share "\\mark\share"
> >test
> >\\mark\share
> >\\mark\share
> >
> >Everything is fine here.
> >
> >D:\home\windows\desktop>gcc test.c -o test
> >
> >D:\home\windows\desktop>test \\mark\share "\\mark\share"
> >test
> >\\mark\share
> >\mark\share
> >
> >The second argument in the quotes loses a backslash
This is correct - the first \ in the quotes escapes the second.
Chris
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |