1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-26 11:45:22 +01:00
vim/src/which.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
254 B
Bash
Raw Permalink Normal View History

2004-06-13 20:20:40 +00:00
#! /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