From 8fcb51a814dbc161fc67c7b0bc3e63678937157d Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 4 May 2021 09:26:33 +0200 Subject: [PATCH] Resolves: #1942153, fixed unbound variable --- which.spec | 5 ++++- which2.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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