From 82a0a5968d858df1754459b0984f14ad24b90fe9 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 5 Nov 2019 15:15:08 +0100 Subject: [PATCH] set correct alias for ksh --- which.spec | 5 ++++- which2.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/which.spec b/which.spec index 2dbee15..199a732 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: 15%{?dist} +Release: 16%{?dist} License: GPLv3 Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh @@ -39,6 +39,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %{_mandir}/man1/which.1* %changelog +* Tue Nov 05 2019 Than Ngo - 2.21-16 +- set correct alias for ksh + * Sat Jul 27 2019 Fedora Release Engineering - 2.21-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/which2.sh b/which2.sh index d7e5373..1f394ac 100644 --- a/which2.sh +++ b/which2.sh @@ -1,6 +1,6 @@ # Initialization script for bash and sh -if [ "$0" = ksh ] ; then +if [ "$0" == "ksh" -o "$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'