diff --git a/dist b/dist new file mode 100644 index 0000000000000000000000000000000000000000..9c0e36ec42a2d9bfefacb21ac6354c9ddd910533 --- /dev/null +++ b/dist @@ -0,0 +1 @@ +an8 diff --git a/which.spec b/which.spec index cbac0dbe92caff4199ebf3772831b9e17394434d..c63644bdbc5811fff78a1badb5b0a4639f97a46c 100644 --- a/which.spec +++ b/which.spec @@ -1,8 +1,7 @@ -%define anolis_release .0.1 Summary: Displays where a particular program in your path is located Name: which Version: 2.21 -Release: 17%{anolis_release}%{?dist} +Release: 18%{?dist} License: GPLv3 Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz Source1: which2.sh @@ -14,22 +13,10 @@ Requires: coreutils BuildRequires: gcc BuildRequires: readline-devel -Requires: glibc -Provides: /usr/bin/which - %description The which command shows the full pathname of a specified program, if the specified program is in your PATH. -%package doc -Summary: Documents for %{name} -BuildArch: noarch -Requires: %{name} = %{version}-%{release} - - -%description doc -Doc pages for %{name} - %prep %setup -q %patch0 -p1 -b .coverity @@ -48,17 +35,15 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir %files %license COPYING +%doc EXAMPLES README AUTHORS NEWS %attr(0644,root,root) %{_sysconfdir}/profile.d/which2.* %{_bindir}/which %{_infodir}/which.info* %{_mandir}/man1/which.1* -%files doc -%doc EXAMPLES README AUTHORS NEWS - %changelog -* Fri Jul 15 2022 Chang Gao - 2.21-17.0.1 -- Add doc sub package +* Mon Apr 11 2022 Than Ngo - 2.21-18 +- Resolves: #2044450 - custom profile generates shell error * Thu Nov 25 2021 Than Ngo - 2.21-17 - Resolves: #2025709, check shell correctly diff --git a/which2.sh b/which2.sh index 0f47f9e03b9ba64c2e9ff2b805ab07a35d40817c..bca53475f48b5e1a935fe71a8d204be425d3a605 100644 --- a/which2.sh +++ b/which2.sh @@ -20,7 +20,7 @@ bash|sh) ;; esac -which () { +function which { (alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@ }