diff --git a/which.spec b/which.spec index 676c9a0..a9c6df7 100644 --- a/which.spec +++ b/which.spec @@ -1,7 +1,7 @@ Summary: Displays where a particular program in your path is located Name: which Version: 2.21 -Release: 25%{?dist} +Release: 26%{?dist} License: GPLv3 Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh @@ -41,6 +41,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %{_mandir}/man1/which.1* %changelog +* Tue May 04 2021 Than Ngo - 2.21-26 +- Resolves: #1942153, fixed unbound variable + * Mon Apr 26 2021 Than Ngo - 2.21-25 - improved which2.sh diff --git a/which2.sh b/which2.sh index 16b930c..6ef7979 100644 --- a/which2.sh +++ b/which2.sh @@ -15,4 +15,5 @@ which () (alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@" } +export which_declare export ${which_opt} which