summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--configure.ac2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3ecb05e63..a4bec3999 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2024-09-14 Oliver Kiddle <opk@zsh.org>
+ * 53084: configure.ac: yet another approach to the /dev/fd
+ autoconf test because of shells emulating /dev/fd
+
* 53083: configure.ac, Src/Builtins/rlimits.c: handle Haiku
specific resource limit for open vnode monitors
diff --git a/configure.ac b/configure.ac
index 220f353c3..e8f434274 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1949,7 +1949,7 @@ AH_TEMPLATE([PATH_DEV_FD],
[Define to the path of the /dev/fd filesystem.])
AC_CACHE_CHECK(for /dev/fd filesystem, zsh_cv_sys_path_dev_fd,
[for zsh_cv_sys_path_dev_fd in /proc/self/fd /dev/fd no; do
- (exec 3<&0; test -e $zsh_cv_sys_path_dev_fd/3;) && break
+ test x`echo ok|(cat $zsh_cv_sys_path_dev_fd/3 3<&0 2>/dev/null;)` = xok && break
done])
if test x$zsh_cv_sys_path_dev_fd != xno; then
AC_DEFINE_UNQUOTED(PATH_DEV_FD, "$zsh_cv_sys_path_dev_fd")