autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] paginate output of configure --help


From: Eric Blake
Subject: Re: [PATCH] paginate output of configure --help
Date: Sat, 11 Oct 2008 14:09:22 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to William Pursell on 10/11/2008 10:27 AM:
> This may be a controversial patch, but I think that
> of all the times I have ever run configure --help
> without appending "|less" it was either because I
> piped the output through more or because I forgot
> to paginate completely.

Thanks for the idea; however, I'm not inclined to apply it.  Even if we
were to make autoconf output paged, we should do it consistently for all
output, not just --help.  If you always want to paginate, then you can
write a simple shell script wrapper or alias, which has the benefit of
working with existing configure scripts.  Besides, adding automatic paging
to configure would make autoconf behave different from other GNU tools,
which assume that if you want a pager, you will do the pipe yourself
(consider how long 'ls --help' is).

Furthermore, your patch still has some portability problems.  For example,
'test "$PAGER"' is not portable if PAGER begins with a '-', and you cannot
rely on the existence of mktemp.

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

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

iEYEARECAAYFAkjxB/IACgkQ84KuGfSFAYB7twCdGtGJfJi09DAB/UaLpnqnEtGS
yrIAniSjlfjglQFdTBJyI652vuYDrOBI
=pxqQ
-----END PGP SIGNATURE-----




reply via email to

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