delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/15/10:08:53

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
Date: Mon, 15 Jul 2002 10:08:35 -0400 (EDT)
From: Mark Blackburn <marklist AT fangorn DOT ca>
To: cygwin AT cygwin DOT com
Subject: cygwin1.dll mangling command line args
Message-ID: <Pine.LNX.3.96.1020715095516.6949A-100000@rivendell.fangorn.ca>
MIME-Version: 1.0

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



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019