diff --git a/SOURCES/which2.sh b/SOURCES/which2.sh index 0f47f9e..bca5347 100644 --- a/SOURCES/which2.sh +++ b/SOURCES/which2.sh @@ -20,7 +20,7 @@ bash|sh) ;; esac -which () { +function which { (alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@ } diff --git a/SPECS/which.spec b/SPECS/which.spec index 489f39c..c63644b 100644 --- a/SPECS/which.spec +++ b/SPECS/which.spec @@ -1,7 +1,7 @@ Summary: Displays where a particular program in your path is located Name: which Version: 2.21 -Release: 17%{?dist} +Release: 18%{?dist} License: GPLv3 Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh @@ -42,6 +42,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %{_mandir}/man1/which.1* %changelog +* Mon Apr 11 2022 Than Ngo - 2.21-18 +- Resolves: #2044450 - custom profile generates shell error + * Thu Nov 25 2021 Than Ngo - 2.21-17 - Resolves: #2025709, check shell correctly - Resolves: #2009547, which treats function contents as aliases when parsing ksh