Re: use execute module in m4

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 3/3/2009 6:39 AM:
> Here's the followup patches which switch to the pipe module for esyscmd,
> nuke code rendered dead now that gnulib takes care of separating signal
> from normal exit status, then adds ./configure --with-syscmd-shell to
> allow overriding the default choice of /bin/sh (or, on Solaris,
> /usr/xpg4/bin/sh).  I've tested this on several platforms, but won't push
> to savannah until I've ported it to branch-1.6 and master.

Now ported.  I also needed this patch when using a cross-compiler under
cygwin to build a mingw executable.  Mingw likes to output argv[0] as an
absolute path, and includes \ directory separators; but with the new
configure --with-syscmd-shell option, you can use sh instead of cmd as the
shell.  Passing __program__ through syscmd falls foul of sh quoting rules
(cmd may be insane in its quoting rules, but at least it deals with \ as a
directory separator instead of an escape, making life with the
brain-damaged choice of directory separator a bit easier).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkm7CIgACgkQ84KuGfSFAYCc8wCgm7DSbySR+y9OEJ/yxAuFb2kM
9LAAoNZ9vXceHe52zGHtiDLxxfPiDnoh
=0/X/
-----END PGP SIGNATURE-----

_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches
m4.patch406 (text/plain, 6.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.