I have a strange problem with environment PATH value using getenv function (on Windows platform).
#include <stdio.h>
#include <stdlib.h>
int main()
{
puts(getenv("PATH"));
return 0;
}
If I run/debug the above program in CB, anything like
"c:\some\dir" with surrounding quotes becomes something like
\\"c\some\dir". Note the text is shown verbatim, and note the missing colon ( : ). It seems CB does not like leading quote char in PATH value.
If I run my program directly without CB IDE, the quoted path string is normal.
I verified this in old 17.12 which demonstrated same behavior. So it's an old bug but not disovered/reported by anyone.
Just curious, why does CB touch PATH value?