-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Stepan Kasal on 9/20/2006 5:21 AM: > Hello, > current CVS version of m4 sets interactive mode iff the stdin is a > tty. I think it would be better to set interactive mode iff the > stdin, the stdout, and the stderr are a tty. (Something like the > patch below.) > > Background: autom4te currently calls "m4 </dev/null" to ensure > non-interactive mode for both m4-1.4 and m4-2.0. > To teach autom4te to handle stdin correctly, I would like to remove > the redirection.
A postscript to my patch today: "m4" and "m4 -" are now no longer exact synonyms in 2.0 (nor should they be, according to POSIX sh semantics); although both process stdin, the former may or may not be interactive (depending on stdin and stderr), while the latter will not be interactive. And in 1.4.x, both forms are non-interactive (since prior to 2.0, the only way to get interactive was to ask for it explicitly). Use that to your advantage in autom4te, so that you don't have to redirect :) - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFEezk84KuGfSFAYARAu5KAJ99gRzftpdgUosnrLGR+i6qbRlpYwCfcehc GDTUcWuX+2lDqgBOwXoP2tE= =cDyZ -----END PGP SIGNATURE----- _______________________________________________ M4-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/m4-patches
