Subversion Repositories configs

Rev

Rev 201 | Rev 206 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
201 - 1
# shellcheck shell=sh
2
# Initialization script for bash, sh, mksh and ksh
192 - 3
 
203 - 4
which_declare="declare -f"
5
which_opt="-f"
6
which_shell="$(cat /proc/$$/comm)"
201 - 7
 
203 - 8
if [ "$which_shell" = "ksh" ] || [ "$which_shell" = "mksh" ] || [ "$which_shell" = "zsh" ] ; then
9
  which_declare="typeset -f"
10
  which_opt=""
192 - 11
fi
201 - 12
 
13
which ()
14
{
203 - 15
(alias; eval ${which_declare}) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
201 - 16
}
17
 
203 - 18
export which_declare
19
export ${which_opt} which