Re: Path Seperator

2003-06-05 Thread Christopher Faylor
On Wed, Jun 04, 2003 at 07:32:01AM -0400, Earnie Boyd wrote: Yes, but a program that was built to use Win32 would have a ';' in it's path, even if it is run under Cygwin. If you are using normal 'gcc' (without the -mno-cygwin option) to build your program, you can't reliably check the

Re: Path Seperator

2003-06-04 Thread Earnie Boyd
Simply check for the presence of ';' in PATH, if it exists that is the seperator else ':' is the seperator. Of course Win32 environment typically will not return the value of PATH as the lookup for environment variable is case sensitive and the variable name is Path instead. Earnie. --

Re: Path Seperator

2003-06-04 Thread Christopher Faylor
On Tue, Jun 03, 2003 at 09:31:39PM -0400, Earnie Boyd wrote: Simply check for the presence of ';' in PATH, if it exists that is the seperator else ':' is the seperator. You'll never see a ';' separator if you use getenv in cygwin. And you won't reliably see a ':' separator if you use a windows