diff options
author | Oliver Kiddle <opk@zsh.org> | 2024-09-14 19:33:10 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2024-09-14 19:33:10 +0200 |
commit | 0cd2c953b486c85bc4b7983dee18065d0a53cb04 (patch) | |
tree | c850dc3123b0aaf044b605164cda6f72493b0dd1 /configure.ac | |
parent | 55ff6f88649a592eb42e04e7434fd89349d4518a (diff) | |
download | zsh-0cd2c953b486c85bc4b7983dee18065d0a53cb04.tar.gz zsh-0cd2c953b486c85bc4b7983dee18065d0a53cb04.zip |
53084: yet another approach to the /dev/fd autoconf test because of shells emulating /dev/fd
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
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") |