set -x

# this runs fine using cat-cygwin.c compiled with gcc as a cygwin executable
echo "starting good test ..."
gcc -o cat-cygwin.exe cat-cygwin.c
bug.pl good

echo " "
echo " "

# this fails (hangs) when Perl forks the native executable
echo "starting failed test ... this hangs"
gcc -o cat-native.exe -mno-cygwin cat-cygwin.c
bug.pl bad
