m4-patches
[Top][All Lists]
Advanced

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

Re: Interactive behaviour


From: Eric Blake
Subject: Re: Interactive behaviour
Date: Wed, 20 Sep 2006 19:37:42 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666

-----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             address@hidden
-----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-----




reply via email to

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