From 1be483011a8a2f9948dfc10cb88deb300abbbaaf Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 9 Feb 2022 16:17:41 +0100 Subject: [PATCH] make which2.sh script more robust --- which.spec | 5 ++++- which2.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/which.spec b/which.spec index 7598a4f..f064b05 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: 32%{?dist} +Release: 33%{?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 +* Wed Feb 09 2022 Than Ngo - 2.21-33 +- make which2.sh script more robust, + * Sat Jan 22 2022 Fedora Release Engineering - 2.21-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/which2.sh b/which2.sh index 0f47f9e..bca5347 100644 --- a/which2.sh +++ b/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 $@ }