bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system(), Solaris, and the 'execute' module


From: Bruno Haible
Subject: Re: system(), Solaris, and the 'execute' module
Date: Tue, 3 Jun 2008 02:00:58 +0200
User-agent: KMail/1.5.4

Eric Blake wrote:
> it could even allow a configure-time option for
> mingw to pick a POSIX shell (particularly when targetting an MSYS build,
> where such a shell is known to exist), rather than being hard-coded to the
> current 'cmd /c' provided by system().  But it might also introduce
> difficulties - the current mingw build is portable to different machines
> with different directory layouts, but encoding the location of the desired
> syscmd shell may make the binary locked into a specific installation
> location for syscmd to work.

You don't need to hardcode the filename of the shell. You can, for example,
use "sh.exe" on mingw (while still continuing to hardcode the absolute filename
$CONFIG_SHELL on Unix platforms).

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]