delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/27/11:12:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Thu, 27 Jul 2000 10:52:55 -0400
To: cygwin AT sources DOT redhat DOT com
Subject: Re: Problem with system()
Message-ID: <20000727105255.A24694@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
References: <OF0C8FF995 DOT E3BB8A61-ON85256929 DOT 004AAD7F AT predictive DOT com> <20000727094828 DOT A12969 AT cygnus DOT com> <39804C1C DOT C84E6F22 AT cygnus DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2i
In-Reply-To: <39804C1C.C84E6F22@cygnus.com>; from vinschen@cygnus.com on Thu, Jul 27, 2000 at 04:50:04PM +0200

On Thu, Jul 27, 2000 at 04:50:04PM +0200, Corinna Vinschen wrote:
>Chris Faylor wrote:
>> 
>> On Thu, Jul 27, 2000 at 09:42:19AM -0400, Glenn DOT Davis AT predictive DOT com wrote:
>> >Chris,
>> >I guesss I should have given more info.
>> >I tried
>> >        system ("command /c dir")
>> >and yes, I am using Windows 95.
>> 
>> I don't know what's wrong but I would check basic things like your PATH.
>> If you don't have a command.com in your path then system is obviously
>> not going to be able to run "command".
>
>You have to use "command.com /c dir" because the standard search
>algorithm only finds apps which don't have an extension or which have
>the ".exe" extension. ".com" isn't supported.

This is the standard extension search:

suffix_info std_suffixes[] =
{
  suffix_info (".exe", 1), suffix_info ("", 1),
  suffix_info (".com"), suffix_info (".cmd"),
  suffix_info (".bat"), suffix_info (".dll"),
  suffix_info (NULL)
};

So, .com should be supported.  It is when I try it, anyway.

cgf

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