Try this:
int main(int argc,char *argv[])
{
int i;
for (i = 0; i < argc; i++)
printf("\n%s", argv[i]);
return 0;
}
Simple enough. Well, compile it and execute it with
the single string "..." (no quotes) on the command line. You should see:
<whatever you named your executable>
.
In other words, where are the other two dots? I tried the same bit of code with
Mingw32 (GCC 2.95.2) to determine if it was DOS 7 or DJGPP that was doing this.
It wasn't DOS, since the Mingw32 version worked OK... (Pun intended) At the time,
I was running under a Win95 (Windows 95. [Version 4.00.950]) DOS shell on a P166.
I first encountered this bug using GCC 2.8.1, and it's still there with 2.95.1.
Anyhow, thanks for making DJGPP; even with small bugs, it is great!