delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/08/12:30:38

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
Message-ID: <39903635.C4D09ADB@veritas.com>
Date: Tue, 08 Aug 2000 09:32:53 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Benjamin Riefenstahl <Benjamin DOT Riefenstahl AT ision DOT net>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: System call
References: <F68EqPeQ1qV94h4Jzgi0000240a AT hotmail DOT com> <200008071421 DOT KAA02793 AT envy DOT delorie DOT com> <20000807161543 DOT G12330 AT cygnus DOT com> <398F32A3 DOT 12530BE4 AT veritas DOT com> <398FD5CC DOT 38E3715C AT ision DOT net>

Benny,

Thanks for the additional info.  I'm too much of a UNIX/Linux C
programmer, I guess;-)

Benjamin Riefenstahl wrote:
> 
> Hi Bob,
> 
> Bob McGowan wrote:
> > /* `dir', `vdir' and `ls' directory listing programs for GNU.
> >    Copyright (C) 85, 88, 90, 91, 95, 1996 Free Software Foundation, Inc.
> > [...]
> > Perhaps this is the source of some of the confusion?
> 
> Part of it probably.  Another is the definition of the system() function
> most likely.
> 
> It's supposed to call the system shell for processing of it's argument.
> Now for Cygwin this would be "/bin/sh -c", naturally.  For VC++,
> Borland, Metrowerks or any other straight Windows compiler the system
> shell should be "%COMSPEC% /c".  So for any newby coming from a Windows
> background and trying Cygwin, it's kind of mysterious at first, why
> system("dir") works in VC++, and not in Cygwin.
> 
> Basically, the system() functions is highly specific to the compiler and
> environment.  This goes so far that some Macintosh compilers implement
> it with a simple "return NULL;", with the reasoning that there *is* no
> shell on MacOS to call.
> 
> so long, benny
> --
> ISION Internet AG
> Benjamin Riefenstahl
> mailto:benjamin DOT riefenstahl AT ision DOT net
> 
> Ruhrstrasse 61
> D-22761 Hamburg
> http://www.ision.net
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

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