Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <rberber@prodigy.net.mx>
Subject:  Re: system() fails on pristine Windows systems
Date:  Mon, 25 Apr 2005 17:47:22 -0500
Lines: 18
Message-ID: <d4jrnk$hkk$1@sea.gmane.org>
References:  <426D5CAB.2070804@awcubed.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  8bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 201.138.30.90
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <426D5CAB.2070804@awcubed.com>
X-IsSubscribed: yes

Archie Warnock wrote:
[snip]
> It seems obvious to me that system() is not finding a command
> interpreter on the machine,

Exactly!

> although they are correctly listed in the
> path for the command window.  Am I missing something really stupid that
> needs to be included in the distribution or set in the program, or does
> system() just not work the way I expect?

Yes, you are missing something really simple... have you seen the man page for
system()?  Of course not, "Use  `system'  to pass a command string `*S' to
`/bin/sh'..."

-- 
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

