which/which2.sh
Jason Tibbitts 5f17e95f07 Fix sh syntax issue in which2.sh
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1546221.
I also included three small spec cleanups:
* Removed Group tag.
* Removed buildroot cleaning in %install.
* Removed needless %defattr in %files.
2018-02-16 11:02:23 -06:00

8 lines
310 B
Bash

# Initialization script for bash and sh
if [ "$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'
fi