From: SourceForge.net <no...@so...> - 2010-06-21 17:43:48
|
Bugs item #3019171, was opened at 2010-06-21 19:43 Message generated for change (Tracker Item Submitted) made by bvassche You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3019171&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mingw runtime Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: (bvassche) Assigned to: Nobody/Anonymous (nobody) Summary: MinGW system() not POSIX-compliant Initial Comment: According to the POSIX specs, the system() function should have the same effect as sh -c "...". Apparently this is not the case. $ sh -c 'set -x; (echo abc)' + echo abc abc $ ./system-test.exe 'set -x; (echo abc)' Executing set -x; (echo abc) ... Environment variable -x; (echo abc) not defined See also http://www.opengroup.org/onlinepubs/000095399/functions/system.html for more information. Setup details: Host OS: Windows 7, 32-bit. gcc version: $ gcc -v Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) $ ld -v GNU ld (GNU Binutils) 2.20.51.20100613 Version of mingwrt: 3.18 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3019171&group_id=2435 |
From: SourceForge.net <no...@so...> - 2010-06-21 19:28:34
|
Bugs item #3019171, was opened at 2010-06-21 13:43 Message generated for change (Comment added) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3019171&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mingw runtime >Group: Known Feature >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: (bvassche) Assigned to: Nobody/Anonymous (nobody) Summary: MinGW system() not POSIX-compliant Initial Comment: According to the POSIX specs, the system() function should have the same effect as sh -c "...". Apparently this is not the case. $ sh -c 'set -x; (echo abc)' + echo abc abc $ ./system-test.exe 'set -x; (echo abc)' Executing set -x; (echo abc) ... Environment variable -x; (echo abc) not defined See also http://www.opengroup.org/onlinepubs/000095399/functions/system.html for more information. Setup details: Host OS: Windows 7, 32-bit. gcc version: $ gcc -v Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) $ ld -v GNU ld (GNU Binutils) 2.20.51.20100613 Version of mingwrt: 3.18 ---------------------------------------------------------------------- >Comment By: Earnie Boyd (earnie) Date: 2010-06-21 15:28 Message: Yes, Windows is not POSIX compliant. Windows never said that it was. MinGW uses the MSVCRT runtime. You must do as Windows does. Check MSDN for the documentation for the use of the system() function. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3019171&group_id=2435 |
From: SourceForge.net <no...@so...> - 2010-06-22 07:54:17
|
Bugs item #3019171, was opened at 2010-06-21 19:43 Message generated for change (Comment added) made by bvassche You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3019171&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mingw runtime Group: Known Feature Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: (bvassche) Assigned to: Nobody/Anonymous (nobody) Summary: MinGW system() not POSIX-compliant Initial Comment: According to the POSIX specs, the system() function should have the same effect as sh -c "...". Apparently this is not the case. $ sh -c 'set -x; (echo abc)' + echo abc abc $ ./system-test.exe 'set -x; (echo abc)' Executing set -x; (echo abc) ... Environment variable -x; (echo abc) not defined See also http://www.opengroup.org/onlinepubs/000095399/functions/system.html for more information. Setup details: Host OS: Windows 7, 32-bit. gcc version: $ gcc -v Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) $ ld -v GNU ld (GNU Binutils) 2.20.51.20100613 Version of mingwrt: 3.18 ---------------------------------------------------------------------- Comment By: (bvassche) Date: 2010-06-22 09:54 Message: Thanks for the feedback. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2010-06-21 21:28 Message: Yes, Windows is not POSIX compliant. Windows never said that it was. MinGW uses the MSVCRT runtime. You must do as Windows does. Check MSDN for the documentation for the use of the system() function. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3019171&group_id=2435 |