--On Saturday, March 08, 2003 05:06:05 +0100 Rhialto
<[EMAIL PROTECTED]> wrote:
> - execlp("m4", "m4", "-s", tmp_file, "-", NULL);
> + /* execlp("m4", "m4", "-s", tmp_file, "-", NULL); */
> + /* Not all m4s know about -s -Rhialto */
> + snprintf(command, sizeof(command), "cat '%s' - | m4", tmp_file);
> + execlp("/bin/sh", "sh", "-c", command, NULL);
If you really want to remove the -s option, surely you can do so
without invoking cat and the shell...? :-) Just remove the "-s"
element from the arguments to execlp.
But I think perhaps you really want to add an option to m4 (or a
built-time test) to control this behavior. Those of us whose m4
supports -s appreciate the ability of ctwm to issue diagnostic messages
with the correct line number in .ctwmrc...
Rudy