delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/28/23:51:58

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
X-Lotus-FromDomain: ISIS ASSOCIATES
From: "Michael K Collison" <Michael_K_Collison AT iassoc DOT ultranet DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Message-ID: <85256762.001334E8.00@osiris.iassoc.ultranet.com>
Date: Wed, 28 Apr 1999 23:48:30 -0400
Subject: Problem with getenv
Mime-Version: 1.0



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.

Mike



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019