This is the mail archive of the
mailing list for the Cygwin project.
Re: system() fails on pristine Windows systems
Archie Warnock wrote:
> So, what would be the right way to call an external program from a
> Cygwin program without installing Cygwin, if not system()?
I don't know if it works but I would try to use popen(), there's also exec() and
all it's relatives.
> I also find it somewhat puzzling that it works on my development
> machines even though /bin/sh isn't anywhere along in the path of the
> Windows command shell.
Registry perhaps, the cygwin1.dll has to set a sane environment for itself, it
probably gets the location of the Cygwin installation plus the mount table and
some environment variables.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html