From 29fe6d0e0d41f6f05132e84847dca86409bc8684 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 24 Nov 2026 15:13:37 +0100 Subject: [PATCH] install_update_dovecot-2.4.sh: use '2>&1' instead of '2<&1' for stderr redirection '2<&1' duplicates fd 1 as an input descriptor. In bash it happens to behave like '2>&1', but it is unusual and misleading. Use the common form '2>&1' (cp, grep, pigeonhole configure/make/make install). Co-Authored-By: Claude Opus 5.5 --- install_update_dovecot-2.4.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install_update_dovecot-2.4.sh b/install_update_dovecot-2.4.sh index 167c03e..4c3f467 100755 --- a/install_update_dovecot-2.4.sh +++ b/install_update_dovecot-2.4.sh @@ -3826,7 +3826,7 @@ echononl " Add /usr/local/dovecot/bin to PATH variable.." if grep -Eq '^\s*checkdir="?/usr/local/dovecot/bin"?$' "${_file}"; then echo -e "$rc_skipped" else - cp "${_file}" "/tmp/etc_profile.${backup_date}" > "${log_file}" 2<&1 + cp "${_file}" "/tmp/etc_profile.${backup_date}" > "${log_file}" 2>&1 if [[ $? -gt 0 ]] ; then echo -e "$rc_failed" error "$(cat $log_file)" @@ -3863,7 +3863,7 @@ fi echononl " Copy Manpages if not exists.." ## - Manpages ## - -if ! grep /usr/local/dovecot/share/man /etc/manpath.config > /dev/null 2<&1 ; then +if ! grep /usr/local/dovecot/share/man /etc/manpath.config > /dev/null 2>&1 ; then echo >> /etc/manpath.config echo "MANDATORY_MANPATH /usr/local/dovecot/share/man /var/cache/man" >> /etc/manpath.config echo "MANPATH_MAP /usr/local/dovecot/bin /usr/local/dovecot/share/man" >> /etc/manpath.config @@ -3893,7 +3893,7 @@ cd ${dovecot_pigeonhole_archiv_dir} echononl " Configure Pigeonhole ManageSieve.." ./configure \ --prefix=/usr/local/dovecot-${_version} \ - --with-dovecot=/usr/local/dovecot-${_version}/lib/dovecot > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-configure.log 2<&1 + --with-dovecot=/usr/local/dovecot-${_version}/lib/dovecot > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-configure.log 2>&1 if [ "$?" = 0 ]; then echo -e "$rc_done" else @@ -3902,7 +3902,7 @@ else fi echononl " Compile Pigeonhole ManageSieve.." -make > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-make.log 2<&1 +make > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-make.log 2>&1 if [ "$?" = 0 ]; then echo -e "$rc_done" else @@ -3911,7 +3911,7 @@ else fi echononl " Install Pigeonhole ManageSieve.." -make install > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-install.log 2<&1 +make install > ${_log_dir}/${dovecot_pigeonhole_archiv_prefix}-install.log 2>&1 if [ "$?" = 0 ]; then echo -e "$rc_done" else