Re: Argument parsing with gcc compiled program

2015-11-27 Thread Achim Gratz
Gluszczak, Glenn writes: > Thanks for the email reference. Cygwin.dll always strips backslashes > so I'm stuck compiling with VS, ok. You can do a cross-compile from Cygwin to MinGW if you need Windows semantics. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blof

Re: Argument parsing with gcc compiled program

2015-11-27 Thread Gluszczak, Glenn
>* From: Marco Atzeri >* To: cygwin at cygwin dot com >* Date: Fri, 27 Nov 2015 18:08:44 +0100 >* Subject: Re: Argument parsing with gcc compiled program >* Authentication-results: sourceware.org; auth=none >* References: gmail dot com> <91DCAC3CB99C724EB365BB64677FBE7B

Re: Argument parsing with gcc compiled program

2015-11-27 Thread Marco Atzeri
On 27/11/2015 17:55, Gluszczak, Glenn wrote: On Fri, Nov 27, 2015 at 5:03 PM, Gluszczak, Glenn wrote: Please look at my example again. The same program compiled with Visual Studio does *not* strip out the backslash whether run in cmd.exe or bash.exe. Other utilities like Perl do not str

RE: Argument parsing with gcc compiled program

2015-11-27 Thread Gluszczak, Glenn
>On Fri, Nov 27, 2015 at 5:03 PM, Gluszczak, Glenn wrote: > Please look at my example again. The same program compiled with Visual > Studio does *not* > strip out the backslash whether run in cmd.exe or bash.exe. Other utilities > like Perl > do not strip out the backslash either. It is only

Re: Argument parsing with gcc compiled program

2015-11-27 Thread Csaba Raduly
On Fri, Nov 27, 2015 at 5:03 PM, Gluszczak, Glenn wrote: > Please look at my example again. The same program compiled with Visual > Studio does *not* > strip out the backslash whether run in cmd.exe or bash.exe. Other utilities > like Perl > do not strip out the backslash either. It is only

RE: Argument parsing with gcc compiled program

2015-11-27 Thread Gluszczak, Glenn
>-Original Message- >From: Jan Nijtmans [mailto:jan.nijtm...@gmail.com] >Sent: Friday, November 27, 2015 4:30 AM >To: cygwin@cygwin.com >Subject: Re: Argument parsing with gcc compiled program > >2015-11-26 21:30 GMT+01:00 Gluszczak, Glenn : >> Sorry I should

Re: Argument parsing with gcc compiled program

2015-11-27 Thread Jan Nijtmans
2015-11-26 21:30 GMT+01:00 Gluszczak, Glenn : > Sorry I should have specified, this is not bash as this happens with the gcc > compiled > program within a Command Prompt session. > > > K:\>a.exe -s something "something d\:\\hello" > > Command-line arguments: > argv[0] a > argv[1] -s > ar

RE: Argument parsing with gcc compiled program

2015-11-26 Thread Gluszczak, Glenn
Sorry I should have specified, this is not bash as this happens with the gcc compiled program within a Command Prompt session. K:\>a.exe -s something "something d\:\\hello" Command-line arguments: argv[0] a argv[1] -s argv[2] something argv[3] something d\:\hello CL: K:\sat-mi

Re: Argument parsing with gcc compiled program

2015-11-26 Thread Marco Atzeri
On 26/11/2015 21:08, Gluszczak, Glenn wrote: For some reason when I compile a C program in gcc, double backslashes within quotes are stripped. But if I compile with Visual Studio this does not happen. I used a small test program to demonstrate. VS c:\msvc2010_SP1\VC>a.exe -s something "somet