fresh install, when I run a c++ program I made from a cygterm it logs out

jeff jeff@jeffunit.com
Mon Oct 14 21:18:04 GMT 2024


I have a test case.

this is test.c:
#include <stdio.h>
int    main(int argc, char *argv[])
{
     for (int i = 0; i < argc; i++)
     printf("%s\n", argv[i]);
}

compiled with gcc test.c -o testx.exe

when run from windows terminal:
testx one two three
testx
one
two
three

when run from cygwin bash shell and /cygdrive/k
jdeifik@epyc-milan-64 /cygdrive/k
$ testx one two thee
testx
one
two
thee

when run from cygwin bash shell and /cygdrive/k/pw-crack
jdeifik@epyc-milan-64 /cygdrive/k/pw-crack
$ testx one two thee
testx
one
two
thee

when run from cygwin bash shell and /cygdrive/k/pw-crack/fred_john
jdeifik@epyc-milan-64 /cygdrive/k/pw-crack/fred_john
$ !testx
testx one two thee
testx
one
two
thee

when run from cygwin bash shell and /cygdrive/k/pw-crack/fred_john/run
jdeifik@epyc-milan-64 /cygdrive/k/pw-crack/fred_john/run
$ testx one two thee

jdeifik@epyc-milan-64 /cygdrive/k/pw-crack/fred_john/run
$
logout

Please advise
jeff






More information about the Cygwin mailing list