From: Mark Cave-A. <m.c...@we...> - 2006-01-03 10:54:17
|
> -----Original Message----- > From: min...@li... [mailto:mingw-msys- > ad...@li...] On Behalf Of Earnie Boyd > Sent: 01 January 2006 23:50 > To: min...@li... > Subject: Re: [Mingw-msys] RE: Bug with backticks behaviour in mSYS? (cut) > Is your test program compiled with binary mode defaults for stdout? > Try adding > /mingw/lib/binmode.o to the link command and retry your test. This is > likely > not to be a MinGW/MSYS error but a Windows feature. Hi Earnie, Thanks for your response. I still get the same results even if I link binmode.o into the resulting executable, e.g. mca@IBM-SPARKS ~ $ gcc -o test.o -c test.c mca@IBM-SPARKS ~ $ gcc -o test test.o /mingw/lib/binmode.o mca@IBM-SPARKS ~ $ sh -c "echo \"\`./test\` -lpq\"" | hexdump -C 00000000: 74 68 69 73 20 69 73 20 61 20 74 65 73 74 20 73 this is a test s 00000010: 74 72 69 6E 67 01 20 2D 6C 70 71 0A tring. -lpq. Many thanks, Mark. ------------------------ WebBased Ltd 17 Research Way Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 http://www.webbased.co.uk http://www.infomapper.com http://www.swtc.co.uk This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. |