Subject: Re: System call
From: Bob McGowan <[email-masked]>
To: Benjamin Riefenstahl <[email-masked]>
Cc: [email-masked]
Date: Tue, 08 Aug 2000 09:32:53 -0700

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:[email-masked]
> 
> Ruhrstrasse 61
> D-22761 Hamburg
> http://www.ision.net
> 
> --
> Want to unsubscribe from this list?
> Send a message to [email-masked]

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
[email-masked]

--
Want to unsubscribe from this list?
Send a message to [email-masked]