mirror of
https://github.com/vim/vim
synced 2025-03-25 11:15:10 +01:00
12 lines
254 B
Bash
Executable file
12 lines
254 B
Bash
Executable file
#! /bin/sh
|
|
#
|
|
# which.sh -- find where an executable is located. It's here because the
|
|
# "which" command is not supported everywhere. Used by Makefile.
|
|
|
|
IFS=":"
|
|
for ac_dir in $PATH; do
|
|
if test -f "$ac_dir/$1"; then
|
|
echo "$ac_dir/$1"
|
|
break
|
|
fi
|
|
done
|