Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <37285EE1.69F8E73@bgs.com> Date: Thu, 29 Apr 1999 09:30:09 -0400 From: Eugene Kanter X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Problem with getenv References: <85256762 DOT 001334E8 DOT 00 AT osiris DOT iassoc DOT ultranet DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Michael K Collison wrote: > > I have a small program that uses getenv to grab an environment variable. > Based on this variable I construct a path to a program. I them use this > path in a call to 'system' like this: > > i = system(path); > > The problem is that the path (returned from 'getenv') looks something like: > > c:\\root\\subdir\\etc > > The error I get from the system command is: > > 'c:rootsubdiretc: no such device or address > > It's obvious that the system command is not parsing the path correctly. Is > there any way to solve this problem. could you post an example of the program which exersizes this error? I use getenv("PATH") and it returns cygwin style PATH, e.g. uses '/' as a separator. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com