git: 73df5f2ec93a - main - man: Do glob expansion with echo instead of ls
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 11 Sep 2026 05:32:43 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=73df5f2ec93ab03a74fced49323bfdfdb1514700
commit 73df5f2ec93ab03a74fced49323bfdfdb1514700
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-09-11 05:13:46 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-09-11 05:13:46 +0000
man: Do glob expansion with echo instead of ls
echo is a shell builtin, and always present. While ls usually works,
some upgrade scenarios need to have ls be a build to to work
correctly. Rather than add it as a build tool, use echo instead which is
always safe because sh is a build tool.
Sponsored by: Netflix
---
share/man/man4/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index c11110ac447c..305597d8bedb 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -1009,7 +1009,7 @@ MLINKS+=cgem.4 if_cgem.4
.endif
.if empty(MAN_ARCH) || ${MAN_ARCH} == "all"
-__arches= ${:!/bin/sh -c "/bin/ls -d ${.CURDIR}/man4.*"!:E}
+__arches= ${:!/bin/sh -c "echo ${.CURDIR}/man4.*"!:E}
.else
__arches= ${MAN_ARCH}
.endif