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 environme

Re: Path Seperator

2003-06-04 Thread Earnie Boyd
il distribution remain intact. -- Date: Tue, 3 Jun 2003 21:42:15 -0400 From: Christopher Faylor <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Path Seperator Message-ID: <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED]

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

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. -- Unsubs