disable the --read-functions option in korn shells
This commit is contained in:
parent
1fa13a9bff
commit
1784ef6a01
@ -1,7 +1,7 @@
|
||||
Summary: Displays where a particular program in your path is located
|
||||
Name: which
|
||||
Version: 2.21
|
||||
Release: 29%{?dist}
|
||||
Release: 30%{?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 Oct 26 2021 Than Ngo <than@redhat.com> - 2.21-30
|
||||
- disable the --read-functions option in korn shells
|
||||
|
||||
* Fri Oct 15 2021 Than Ngo <than@redhat.com> - 2.21-29
|
||||
- Fixed regression, use export instead alias
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
case "$(cat /proc/$$/comm)" in
|
||||
ksh|mksh)
|
||||
which_declare="typeset -fS"
|
||||
which_declare=""
|
||||
which_opt=""
|
||||
;;
|
||||
zsh)
|
||||
@ -17,7 +17,7 @@ zsh)
|
||||
esac
|
||||
|
||||
which () {
|
||||
(alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
|
||||
(alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
|
||||
}
|
||||
|
||||
export which_declare
|
||||
|
Loading…
Reference in New Issue
Block a user