import which-2.21-28.el9
This commit is contained in:
parent
754395d353
commit
e8595816cf
@ -1,18 +1,27 @@
|
|||||||
# shellcheck shell=sh
|
# shellcheck shell=sh
|
||||||
# Initialization script for bash, sh, mksh and ksh
|
# Initialization script for bash, sh, mksh and ksh
|
||||||
|
|
||||||
which_declare="declare -f"
|
case "$(basename $(readlink /proc/$$/exe))" in
|
||||||
which_opt="-f"
|
*ksh*)
|
||||||
which_shell="$(cat /proc/$$/comm)"
|
which_declare=""
|
||||||
|
which_opt=""
|
||||||
if [ "$which_shell" = "ksh" ] || [ "$which_shell" = "mksh" ] || [ "$which_shell" = "zsh" ] ; then
|
;;
|
||||||
|
zsh)
|
||||||
which_declare="typeset -f"
|
which_declare="typeset -f"
|
||||||
which_opt=""
|
which_opt=""
|
||||||
fi
|
;;
|
||||||
|
bash|sh)
|
||||||
|
which_declare="declare -f"
|
||||||
|
which_opt="-f"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
which_declare=""
|
||||||
|
which_opt=""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
which ()
|
function 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
|
export which_declare
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Displays where a particular program in your path is located
|
Summary: Displays where a particular program in your path is located
|
||||||
Name: which
|
Name: which
|
||||||
Version: 2.21
|
Version: 2.21
|
||||||
Release: 27%{?dist}
|
Release: 28%{?dist}
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
|
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
|
||||||
Source1: which2.sh
|
Source1: which2.sh
|
||||||
@ -40,6 +40,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|||||||
%{_mandir}/man1/which.1*
|
%{_mandir}/man1/which.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 15 2022 Than Ngo <than@redhat.com> - 2.21-28
|
||||||
|
- Resolves: #2050996, error on login when using ksh as the default shell
|
||||||
|
|
||||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.21-27
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.21-27
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
Loading…
Reference in New Issue
Block a user