CreateProcess() - executed program gets different argument depending if it's compiled with gcc (cygwin) or cl (VS)?
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Thu Feb 18 18:02:00 GMT 2010
On 02/18/2010 12:55 PM, Piotr Krukowiecki wrote:
> Hello,
>
> In short, I have a problem with passing "\\127.0.0.127\foo.cxx"
> argument to a called program:
>
> - if the executed program is compiled with cygwin's gcc the program
> receives \127.0.0.127\foo.cxx (just one backslash at the begining).
> - if it's compiled with cl it gets \\127.0.0.127\foo.cxx (double
> backslash - what I expected)
>
> I suspect cygwin incorrectly mangles backslashes in this case - or
> maybe I'm quoting it incorrectly, or it is Windows fault?
'\' is an escape character in C, Unix, and Linux. In Windows, it's a
path separator. Use '/' instead when working with Cygwin and you'll
avoid allot of problems. Better yet, use POSIX paths exclusively.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list