summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax 👨🏽‍💻 Coplan <mchcopl@gmail.com>2025-05-02 14:47:51 -0700
committerdana <dana@dana.is>2025-05-04 07:33:56 -0500
commitd89f3a1d0863a32597e02beaf1a084bca278f772 (patch)
treeb165579a266521318a9c28e466572790b98e18ab
parent53529: A04redirect fix. (diff)
downloadzsh-d89f3a1d0863a32597e02beaf1a084bca278f772.tar
zsh-d89f3a1d0863a32597e02beaf1a084bca278f772.tar.gz
zsh-d89f3a1d0863a32597e02beaf1a084bca278f772.tar.bz2
zsh-d89f3a1d0863a32597e02beaf1a084bca278f772.tar.lz
zsh-d89f3a1d0863a32597e02beaf1a084bca278f772.tar.xz
zsh-d89f3a1d0863a32597e02beaf1a084bca278f772.tar.zst
zsh-d89f3a1d0863a32597e02beaf1a084bca278f772.zip
53535: fix builds with interactive manpagers
-rw-r--r--ChangeLog5
-rwxr-xr-xUtil/helpfiles2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1dfa62b84..bff0b5146 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-05-04 dana@dana.is <dana@dana.is>
+
+ * Max Coplan: 53535: Util/helpfiles: fix builds with
+ interactive manpagers
+
2025-05-01 Peter Stephenson <p.stephenson@samsung.com>
* 53529: Test/A04redirect.ztst: Avoid using system area for
diff --git a/Util/helpfiles b/Util/helpfiles
index 58aa04bba..71db7d2a4 100755
--- a/Util/helpfiles
+++ b/Util/helpfiles
@@ -57,7 +57,7 @@ $coltmp = $destdir . '/' . $coltmpbase;
$args = "./$manfile >$mantmp";
unlink($mantmp);
&Info('attempting man ', $args);
-if(system('man ' . $args) || !(-s $mantmp)) {
+if(system('MANPAGER=cat man ' . $args) || !(-s $mantmp)) {
unlink($mantmp);
&Info('attempting nroff -man ', $args);
if(system('nroff -man ' . $args) || !(-s $mantmp)) {