From 715bdd902311efabc856536d7e51e3a8440b708f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 28 2020 09:42:30 +0000 Subject: import which-2.21-12.el8 --- diff --git a/SOURCES/which2.sh b/SOURCES/which2.sh index d7e5373..25dd0de 100644 --- a/SOURCES/which2.sh +++ b/SOURCES/which2.sh @@ -1,6 +1,6 @@ # Initialization script for bash and sh -if [ "$0" = ksh ] ; then +if [ "$0" = "ksh" ] || [ "$0" = "-ksh" ] ; then alias which='(alias; typeset -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot' else alias which='(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot' diff --git a/SPECS/which.spec b/SPECS/which.spec index 97b3c7c..8f7f303 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: 10%{?dist} +Release: 12%{?dist} License: GPLv3 Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh @@ -39,6 +39,12 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %{_mandir}/man1/which.1* %changelog +* Tue Nov 19 2019 Than Ngo - 2.21-12 +- Fixed coverity issue + +* Tue Nov 19 2019 Than Ngo - 2.21-11 +- Resolves: #1768506, fix wrong alias + * Mon Jul 23 2018 Than Ngo - 2.21-10 - Fix coverity issues