From f988253071708f84212fe66479988b3b18c48425 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 25 Mar 2020 18:07:24 +0100 Subject: [PATCH] fixed 1817138 - Invalid syntax in /etc/profile.d/which2.sh:3: = not found --- which.spec | 5 ++++- which2.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/which.spec b/which.spec index a1c29f4..944b624 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: 18%{?dist} +Release: 19%{?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 +* Wed Mar 25 2020 Than Ngo - 2.21-19 +- fixed #1817138 - Invalid syntax in /etc/profile.d/which2 + * Tue Mar 24 2020 Than Ngo - 2.21-18 - set correct alias for mksh diff --git a/which2.sh b/which2.sh index 4e69626..53458f3 100644 --- a/which2.sh +++ b/which2.sh @@ -1,6 +1,6 @@ # Initialization script for bash and sh -if [ "$0" == "ksh" -o "$0" == "-ksh" -o "$0" == "mksh" -o "$0" == "-mksh" ] ; then +if [ "$0" = "ksh" -o "$0" = "-ksh" -o "$0" = "mksh" -o "$0" = "-mksh" ] ; 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'