Rev 201 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# shellcheck shell=sh# Initialization script for bash, sh, mksh and kshwhich_declare="declare -f"which_opt="-f"which_shell="$(cat /proc/$$/comm)"if [ "$which_shell" = "ksh" ] || [ "$which_shell" = "mksh" ] || [ "$which_shell" = "zsh" ] ; thenwhich_declare="typeset -f"which_opt=""fiwhich (){(alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"}export which_declareexport ${which_opt} which